fix(bank_panel): repaint footer mode toggle when Design/Arrange action fires

This commit is contained in:
2026-07-28 06:19:32 -04:00
parent 104a25f390
commit 7e7143a055
3 changed files with 12 additions and 0 deletions
+2
View File
@@ -251,6 +251,7 @@ void doToggleMode() {
if (target.empty()) return; // no modes to cycle to (degenerate)
applyMode(g_session->view(), target, nullptr);
persistViewState();
bankPanelInvalidate(); // repaint the footer [Arrange|Design] toggle immediately
}
// Direct jump to a named mode. applyMode is a no-op (returns false, no mutation) if
@@ -258,6 +259,7 @@ void doToggleMode() {
void doActivateMode(const std::string& modeId) {
applyMode(g_session->view(), modeId, nullptr);
persistViewState();
bankPanelInvalidate(); // repaint the footer [Arrange|Design] toggle immediately
}
// Tag the selection's leaves into `modeId`, then reapply so the change is immediate.