mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
ENH: preview slider behavior
1.add pauseprint will not cause preview page refresh 2.fix add custom Gcode window and jump to layer window cannot input after reslice Change-Id: I4f75457b6d6172080715393c975169c8f16464b9
This commit is contained in:
parent
3d48e2dc55
commit
b27a9e27ce
5 changed files with 11 additions and 4 deletions
|
@ -1306,6 +1306,7 @@ void IMSlider::render_input_custom_gcode()
|
|||
set_focus = false;
|
||||
}
|
||||
if (set_focus && !ImGui::IsAnyItemActive() && !ImGui::IsMouseClicked(0)) {
|
||||
wxGetApp().plater()->get_current_canvas3D()->force_set_focus();
|
||||
ImGui::SetKeyboardFocusHere(0);
|
||||
}
|
||||
const int text_height = 6;
|
||||
|
@ -1385,6 +1386,7 @@ void IMSlider::render_go_to_layer_dialog()
|
|||
set_focus = false;
|
||||
}
|
||||
if (set_focus && !ImGui::IsAnyItemActive() && !ImGui::IsMouseClicked(0)) {
|
||||
wxGetApp().plater()->get_current_canvas3D()->force_set_focus();
|
||||
ImGui::SetKeyboardFocusHere(0);
|
||||
}
|
||||
ImGui::InputText("##input_layer_number", m_layer_number, sizeof(m_layer_number));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue