mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
FIX:cannot input 'L' in custom gcode dialog
Change-Id: Ib30420fdb57816d4e8e3a6cd7b327c09737f3b86 (cherry picked from commit 71278d55c410bb36210d7aaa8e938ae5bfddbbcf)
This commit is contained in:
parent
bea9a0854e
commit
ca4db188ea
3 changed files with 8 additions and 3 deletions
|
@ -705,8 +705,11 @@ bool IMSlider::check_ticks_changed_event(Type type)
|
|||
|
||||
|
||||
// switch on/off one layer mode
|
||||
void IMSlider::switch_one_layer_mode()
|
||||
bool IMSlider::switch_one_layer_mode()
|
||||
{
|
||||
if (m_show_custom_gcode_window)
|
||||
return false;
|
||||
|
||||
m_is_one_layer = !m_is_one_layer;
|
||||
if (!m_is_one_layer) {
|
||||
SetLowerValue(m_min_value);
|
||||
|
@ -715,6 +718,7 @@ void IMSlider::switch_one_layer_mode()
|
|||
m_selection == ssLower ? correct_lower_value() : correct_higher_value();
|
||||
if (m_selection == ssUndef) m_selection = ssHigher;
|
||||
set_as_dirty();
|
||||
return true;
|
||||
}
|
||||
|
||||
void IMSlider::draw_background(const ImRect& groove) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue