fix: show all tasks in widget (#23) #24

Merged
maximus merged 4 commits from fix/simpl-liste-23-widget-task-count into master 2026-03-13 00:25:22 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 2e13528c6b - Show all commits

View file

@ -36,7 +36,7 @@ export async function syncWidgetData(): Promise<void> {
const todayStart = startOfDay(now);
// Read widget period setting from AsyncStorage (0 = all, N = N weeks ahead)
let widgetPeriodWeeks = 2;
let widgetPeriodWeeks = 0;
try {
const settingsRaw = await AsyncStorage.getItem('simpl-liste-settings');
if (settingsRaw) {
@ -45,7 +45,7 @@ export async function syncWidgetData(): Promise<void> {
if (typeof stored === 'number') widgetPeriodWeeks = stored;
}
} catch {
// Default to 2 weeks
// Default to all tasks
}
const selectFields = {

View file

@ -27,7 +27,7 @@ export const useSettingsStore = create<SettingsState>()(
notificationsEnabled: true,
reminderOffset: 0,
calendarSyncEnabled: false,
widgetPeriodWeeks: 2,
widgetPeriodWeeks: 0,
setTheme: (theme) => set({ theme }),
setLocale: (locale) => set({ locale }),
setNotificationsEnabled: (notificationsEnabled) => set({ notificationsEnabled }),