Have GUI Option reflect current state (in case toggle fails)
This commit is contained in:
parent
9fcc48d140
commit
6048d2cd23
@ -140,7 +140,9 @@ BoolOption::set_state_from_config ()
|
||||
void
|
||||
BoolOption::toggled ()
|
||||
{
|
||||
_set (_button->get_active ());
|
||||
if (!_set (_button->get_active ())) {
|
||||
_button->set_active (_get ());
|
||||
}
|
||||
}
|
||||
|
||||
RouteDisplayBoolOption::RouteDisplayBoolOption (string const & i, string const & n, sigc::slot<bool> g, sigc::slot<bool, bool> s)
|
||||
|
@ -414,7 +414,7 @@ SessionOptionEditor::set_use_monitor_section (bool yn)
|
||||
|
||||
Config->set_use_monitor_bus (yn);
|
||||
|
||||
return had_monitor_section != yn;
|
||||
return had_monitor_section != (_session->monitor_out() != 0);
|
||||
}
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user