Skip to content

Commit

Permalink
fix #1395
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Aug 5, 2024
1 parent 7a1c6ce commit e3f42bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/Objects/Project.vala
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@ public class Objects.Project : Objects.BaseObject {
}
});

item_deleted.connect ((item) => {
item_deleted.connect (() => {
_project_count = update_project_count ();
_percentage = update_percentage ();
project_count_updated ();
});

item_added.connect ((item) => {
item_added.connect (() => {
_project_count = update_project_count ();
_percentage = update_percentage ();
project_count_updated ();
Expand Down
6 changes: 3 additions & 3 deletions core/Services/Store.vala
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ public class Services.Store : GLib.Object {

public void move_item (Objects.Item item) {
if (Services.Database.get_default ().move_item (item)) {
foreach (Objects.Item subitem in item.items) {
foreach (Objects.Item subitem in get_subitems (item)) {
subitem.project_id = item.project_id;
move_item (subitem);
}
Expand All @@ -572,7 +572,7 @@ public class Services.Store : GLib.Object {

public void checked_toggled (Objects.Item item, bool old_checked) {
if (Services.Database.get_default ().checked_toggled (item, old_checked)) {
foreach (Objects.Item subitem in item.items) {
foreach (Objects.Item subitem in get_subitems (item)) {
subitem.checked = item.checked;
subitem.completed_at = item.completed_at;
checked_toggled (subitem, old_checked);
Expand All @@ -594,7 +594,7 @@ public class Services.Store : GLib.Object {
item_unarchived (item);
}

foreach (Objects.Item subitem in item.items) {
foreach (Objects.Item subitem in get_subitems (item)) {
archive_item (subitem, is_archived);
}
}
Expand Down

0 comments on commit e3f42bb

Please sign in to comment.