Deselect route when hiding it

The mixer allows to modify selected stripables via keyboard
shortcuts (e.g. arrow up/down to modify gain) regardless of
whether the stripable is hidden.

This lead to accidental gain changes after hiding a strip.
This commit is contained in:
Robin Gareus
2025-11-04 20:01:08 +01:00
parent b783b3264c
commit 682abd883c

View File

@@ -2289,6 +2289,9 @@ RouteUI::route_gui_changed (PropertyChange const& what_changed)
route_color_changed ();
}
}
if (what_changed.contains (Properties::hidden) && _route->is_hidden ()) {
_session->selection().select_stripable_and_maybe_group (_route, SelectionRemove, false, false);
}
}
void