mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Fixed performance of preset switching.
This commit is contained in:
parent
8c7a56d4ea
commit
f90ea5060d
2 changed files with 23 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue