Skip to content

Commit

Permalink
#252 Fix menu actions not resulting in refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Aug 15, 2024
1 parent 330ba78 commit 5a91aaa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main/src/infrastructure/ui/header_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,8 @@ impl HeaderPanel {
})
})
.collect();
session.notify_compartment_has_changed(compartment, self.session.clone());
session.mark_dirty();
session.notify_everything_has_changed();
if !errors.is_empty() {
notify_processing_result("Errors occurred when making targets sticky", errors);
}
Expand Down Expand Up @@ -1075,7 +1076,8 @@ impl HeaderPanel {
let mut m = m.borrow_mut();
m.make_target_non_sticky(context, track_mode, fx_mode);
}
session.notify_compartment_has_changed(compartment, self.session.clone());
session.mark_dirty();
session.notify_everything_has_changed();
}

fn move_listed_mappings_to_group(&self, group_id: Option<GroupId>) -> Result<(), &'static str> {
Expand Down

0 comments on commit 5a91aaa

Please sign in to comment.