Compare commits

..

2 Commits

Author SHA1 Message Date
Savanni D'Gerinel 4acf034b8d Clean up warnings and remove printlns 2024-02-08 19:01:56 -05:00
Savanni D'Gerinel 1aff203afc 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 19:01:56 -05:00
1 changed files with 1 additions and 0 deletions

View File

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