Fixed performance of preset switching.

This commit is contained in:
YuSanka 2018-01-27 17:39:00 +01:00
parent 8c7a56d4ea
commit f90ea5060d
2 changed files with 23 additions and 2 deletions

View file

@ -358,6 +358,8 @@ void Choice::set_value(const std::string value) //! Redundant?
void Choice::set_value(boost::any value)
{
m_disable_change_event = true;
switch (m_opt.type){
case coInt:
case coFloat:
@ -388,6 +390,8 @@ void Choice::set_value(boost::any value)
default:
break;
}
m_disable_change_event = false;
}
//! it's needed for _update_serial_ports()