Compare commits

..

3 Commits

Author SHA1 Message Date
Savanni D'Gerinel ea867812bc Clean up warnings and remove printlns 2024-02-08 11:07:59 -05:00
Savanni D'Gerinel cb55d6aae0 Reload data when the user saves on the DayEdit panel
This required some big overhauls. The view model no longer takes records. It only takes the date that it is responsible for, and it will ask the database for records pertaining to that date. This means that once the view model has saved all of its records, it can simply reload those records from the database. This has the effect that as soon as the user moves from DayEdit back to DayDetail, all of the interesting information has been repopulated.
2024-02-08 11:01:46 -05:00
Savanni D'Gerinel cfc7df5e2f The view model can no longer be initialized without an app 2024-02-08 10:32:57 -05:00
1 changed files with 0 additions and 1 deletions

View File

@ -270,7 +270,6 @@ impl DayDetailViewModel {
pub fn save(&self) {
let s = self.clone();
glib::spawn_future(async move { s.async_save().await });
}