mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
allow "Glue to Bars & Beats" in region menu to be in an inconsistent state.
- toggling an inconsistent lock style sets all selected regions to AudioTime
This commit is contained in:
parent
f96d6894e8
commit
f336f4e6d1
2 changed files with 20 additions and 2 deletions
|
|
@ -1301,10 +1301,20 @@ Editor::sensitize_the_right_region_actions ()
|
|||
}
|
||||
|
||||
a = Glib::RefPtr<ToggleAction>::cast_dynamic (_region_actions->get_action("toggle-region-lock-style"));
|
||||
|
||||
CheckMenuItem* cm = dynamic_cast<CheckMenuItem*> (
|
||||
ActionManager::get_widget (X_("/Main/RegionMenu/RegionMenuPosition/toggle-region-lock-style")));
|
||||
|
||||
if (cm) {
|
||||
cm->set_inconsistent (false);
|
||||
}
|
||||
|
||||
a->set_active (have_position_lock_style_music && !have_position_lock_style_audio);
|
||||
|
||||
if (have_position_lock_style_music && have_position_lock_style_audio) {
|
||||
// a->set_inconsistent ();
|
||||
if (cm) {
|
||||
cm->set_inconsistent (true);
|
||||
}
|
||||
}
|
||||
|
||||
a = Glib::RefPtr<ToggleAction>::cast_dynamic (_region_actions->get_action("toggle-region-mute"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue