mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Fixed performance of preset switching.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user