keep selected date when re-opening calendar

This commit is contained in:
marlon-erler
2026-04-01 10:35:51 +00:00
parent e13523a646
commit b259224437
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1877,7 +1877,6 @@
}; };
this.loadData = () => { this.loadData = () => {
this.loadMonthTasks(); this.loadMonthTasks();
this.showToday();
}; };
this.storageModel = storageModel2; this.storageModel = storageModel2;
this.calendarModel = calendarModel; this.calendarModel = calendarModel;
@@ -1891,6 +1890,7 @@
this.showTask(taskFileContent); this.showTask(taskFileContent);
} }
); );
this.showToday();
} }
// data // data
get monthString() { get monthString() {
+3 -1
View File
@@ -184,7 +184,6 @@ export default class CalendarPageViewModel extends TaskContainingPageViewModel {
loadData = (): void => { loadData = (): void => {
this.loadMonthTasks(); this.loadMonthTasks();
this.showToday();
}; };
// init // init
@@ -213,6 +212,9 @@ export default class CalendarPageViewModel extends TaskContainingPageViewModel {
this.showTask(taskFileContent); this.showTask(taskFileContent);
}, },
); );
// initiate
this.showToday();
} }
} }