fix: show all tasks in widget (#23) #24
2 changed files with 3 additions and 3 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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 }),
|
||||
|
|
|
|||
Loading…
Reference in a new issue