mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
SLA gizmo - combobox items are now rendered immediately on mouse click, not after next mouse move
This commit is contained in:
parent
c63bdccb4b
commit
cb4763bb32
4 changed files with 10 additions and 3 deletions
|
@ -168,7 +168,7 @@ void ImGuiWrapper::text(const wxString &label)
|
|||
}
|
||||
|
||||
|
||||
void ImGuiWrapper::combo(const wxString& label, const std::vector<wxString>& options, wxString& selection)
|
||||
bool ImGuiWrapper::combo(const wxString& label, const std::vector<wxString>& options, wxString& selection)
|
||||
{
|
||||
std::string selection_u8 = into_u8(selection);
|
||||
|
||||
|
@ -184,7 +184,9 @@ void ImGuiWrapper::combo(const wxString& label, const std::vector<wxString>& opt
|
|||
selection = option_u8;
|
||||
}
|
||||
ImGui::EndCombo();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void ImGuiWrapper::disabled_begin(bool disabled)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue