Have GUI Option reflect current state (in case toggle fails)

This commit is contained in:
Robin Gareus 2015-09-11 13:21:16 +02:00
parent 9fcc48d140
commit 6048d2cd23
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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