Added show/hide of "Purging volumes" button depending on a state of "wipe_tower"

This commit is contained in:
YuSanka 2018-04-03 22:07:59 +02:00
parent e5f23bc11d
commit d54425a901
5 changed files with 22 additions and 11 deletions

View file

@ -335,7 +335,11 @@ void Tab::on_value_change(std::string opt_key, boost::any value)
bool val = m_config->opt_float("brim_width") > 0.0 ? true : false;
get_optgroup()->set_value("brim", val);
}
if (opt_key == "wipe_tower"){
m_config->opt_bool("wipe_tower") ?
get_wiping_dialog_button()->Show() :
get_wiping_dialog_button()->Hide();
}
update();
}