mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
Hold ctrl + click "open" session -> safe mode
This allows to hide the "Safe Mode" checkbox.
This commit is contained in:
parent
b63babbc3d
commit
70b580a4b4
2 changed files with 13 additions and 0 deletions
|
|
@ -41,6 +41,7 @@
|
||||||
#include "pbd/openuri.h"
|
#include "pbd/openuri.h"
|
||||||
|
|
||||||
#include "gtkmm2ext/utils.h"
|
#include "gtkmm2ext/utils.h"
|
||||||
|
#include "gtkmm2ext/keyboard.h"
|
||||||
|
|
||||||
#include "ardour/audioengine.h"
|
#include "ardour/audioengine.h"
|
||||||
#include "ardour/filesystem_paths.h"
|
#include "ardour/filesystem_paths.h"
|
||||||
|
|
@ -87,6 +88,7 @@ SessionDialog::SessionDialog (bool require_new, const std::string& session_name,
|
||||||
open_button = add_button (Stock::OPEN, RESPONSE_ACCEPT);
|
open_button = add_button (Stock::OPEN, RESPONSE_ACCEPT);
|
||||||
|
|
||||||
back_button->signal_button_press_event().connect (sigc::mem_fun (*this, &SessionDialog::back_button_pressed), false);
|
back_button->signal_button_press_event().connect (sigc::mem_fun (*this, &SessionDialog::back_button_pressed), false);
|
||||||
|
open_button->signal_button_press_event().connect (sigc::mem_fun (*this, &SessionDialog::open_button_pressed), false);
|
||||||
|
|
||||||
open_button->set_sensitive (false);
|
open_button->set_sensitive (false);
|
||||||
back_button->set_sensitive (false);
|
back_button->set_sensitive (false);
|
||||||
|
|
@ -478,6 +480,16 @@ SessionDialog::back_button_pressed (GdkEventButton*)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
SessionDialog::open_button_pressed (GdkEventButton* ev)
|
||||||
|
{
|
||||||
|
if (Gtkmm2ext::Keyboard::modifier_state_equals (ev->state, Gtkmm2ext::Keyboard::PrimaryModifier)) {
|
||||||
|
_disable_plugins.set_active();
|
||||||
|
}
|
||||||
|
response (RESPONSE_ACCEPT);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SessionDialog::populate_session_templates ()
|
SessionDialog::populate_session_templates ()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,7 @@ class SessionDialog : public ArdourDialog {
|
||||||
Gtk::Button* quit_button;
|
Gtk::Button* quit_button;
|
||||||
|
|
||||||
bool back_button_pressed (GdkEventButton*);
|
bool back_button_pressed (GdkEventButton*);
|
||||||
|
bool open_button_pressed (GdkEventButton*);
|
||||||
|
|
||||||
Gtk::Frame info_frame;
|
Gtk::Frame info_frame;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue