File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -654,10 +654,6 @@ public class Services.Store : GLib.Object {
654654 }
655655 #endif
656656
657- public void clear_items_by_project_cache (string project_id ) {
658- _items_by_project_cache. unset (project_id);
659- }
660-
661657 public void add_item (Objects .Item item , bool insert = true ) {
662658 items. add (item);
663659 item_added (item, insert);
Original file line number Diff line number Diff line change @@ -195,8 +195,9 @@ public class MainWindow : Adw.ApplicationWindow {
195195 Objects . Item item = Services . Database . get_default (). get_item_by_id (id);
196196 Gee . ArrayList<Objects . Reminder > reminders = Services . Database . get_default (). get_reminders_by_item_id (id);
197197
198- Services . Store . instance (). clear_items_by_project_cache (item. project_id);
198+ Services . Store . instance (). clear_project_cache (item. project_id);
199199 Services . Store . instance (). add_item (item);
200+
200201 foreach (Objects . Reminder reminder in reminders) {
201202 item. add_reminder_events (reminder);
202203 }
You can’t perform that action at this time.
0 commit comments