mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
GUI checkbox to disable plugins
for the benefit of Windows and OSX users and everyone else who does not run Ardour from the commandline.
This commit is contained in:
parent
ea063ade52
commit
2f7c91c7da
2 changed files with 21 additions and 0 deletions
|
|
@ -411,6 +411,17 @@ SessionDialog::setup_initial_choice_box ()
|
||||||
centering_vbox->pack_start (*browse_label, false, false, 12);
|
centering_vbox->pack_start (*browse_label, false, false, 12);
|
||||||
centering_vbox->pack_start (existing_session_chooser, false, false);
|
centering_vbox->pack_start (existing_session_chooser, false, false);
|
||||||
|
|
||||||
|
/* --disable plugins UI */
|
||||||
|
|
||||||
|
_disable_plugins.set_label (_("Safe Mode: Disable all Plugins"));
|
||||||
|
_disable_plugins.set_flags (Gtk::CAN_FOCUS);
|
||||||
|
_disable_plugins.set_relief (Gtk::RELIEF_NORMAL);
|
||||||
|
_disable_plugins.set_mode (true);
|
||||||
|
_disable_plugins.set_active (ARDOUR::Session::get_disable_all_loaded_plugins());
|
||||||
|
_disable_plugins.set_border_width(0);
|
||||||
|
_disable_plugins.signal_clicked().connect (sigc::mem_fun (*this, &SessionDialog::disable_plugins_clicked));
|
||||||
|
centering_vbox->pack_start (_disable_plugins, false, false);
|
||||||
|
|
||||||
/* pack it all up */
|
/* pack it all up */
|
||||||
|
|
||||||
centering_hbox->pack_start (*centering_vbox, true, true);
|
centering_hbox->pack_start (*centering_vbox, true, true);
|
||||||
|
|
@ -1134,6 +1145,12 @@ SessionDialog::recent_row_activated (const Gtk::TreePath&, Gtk::TreeViewColumn*)
|
||||||
response (RESPONSE_ACCEPT);
|
response (RESPONSE_ACCEPT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
SessionDialog::disable_plugins_clicked ()
|
||||||
|
{
|
||||||
|
ARDOUR::Session::set_disable_all_loaded_plugins (_disable_plugins.get_active());
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
SessionDialog::existing_session_selected ()
|
SessionDialog::existing_session_selected ()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -231,6 +231,10 @@ class SessionDialog : public ArdourDialog {
|
||||||
void master_bus_button_clicked ();
|
void master_bus_button_clicked ();
|
||||||
void setup_more_options_box ();
|
void setup_more_options_box ();
|
||||||
|
|
||||||
|
/* --disable plugins UI */
|
||||||
|
Gtk::CheckButton _disable_plugins;
|
||||||
|
void disable_plugins_clicked ();
|
||||||
|
|
||||||
/* always there */
|
/* always there */
|
||||||
|
|
||||||
Glib::RefPtr<Pango::Layout> layout;
|
Glib::RefPtr<Pango::Layout> layout;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue