mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
Much simplier implementation of: "Show Toolbar" act immediately, i.e., even when already maximized, changing this toggle changes whenever toolbar is shown or not.
git-svn-id: svn://localhost/ardour2/branches/3.0@12695 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
1bd34a34f7
commit
f9ed2ced4a
6 changed files with 39 additions and 34 deletions
|
|
@ -52,7 +52,7 @@ ARDOUR_UI::toggle_keep_tearoffs ()
|
|||
{
|
||||
ActionManager::toggle_config_state ("Common", "KeepTearoffs", &RCConfiguration::set_keep_tearoffs, &RCConfiguration::get_keep_tearoffs);
|
||||
|
||||
ARDOUR_UI::toggle_editing_space_force (true);
|
||||
ARDOUR_UI::update_tearoff_visibility();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -276,21 +276,15 @@ ARDOUR_UI::toggle_video_sync()
|
|||
|
||||
void
|
||||
ARDOUR_UI::toggle_editing_space()
|
||||
{
|
||||
toggle_editing_space_force(false);
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::toggle_editing_space_force(bool force)
|
||||
{
|
||||
Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleMaximalEditor");
|
||||
|
||||
if (act) {
|
||||
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
|
||||
if (tact->get_active()) {
|
||||
maximise_editing_space (force);
|
||||
maximise_editing_space ();
|
||||
} else {
|
||||
restore_editing_space (force);
|
||||
restore_editing_space ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue