Skip to content

Commit

Permalink
Fix #1026
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Dec 8, 2023
1 parent 06d3be3 commit 463429f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Layouts/SectionRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,15 @@ public class Layouts.SectionRow : Gtk.ListBoxRow {
Services.EventBus.get_default ().update_inserted_item_map.connect ((row, old_section_id) => {
if (row.item.project_id == section.project_id &&
row.item.section_id == section.id) {
items [row.item.id] = row;
update_sort ();
if (!items.has_key (row.item.id)) {
items [row.item.id] = row;
update_sort ();
}
}

if (row.item.project_id == section.project_id &&
old_section_id == section.id) {
row.item.section_id != section.id &&
old_section_id == section.id) {
if (items.has_key (row.item.id)) {
items.unset (row.item.id);
}
Expand Down

0 comments on commit 463429f

Please sign in to comment.