mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 03:07:55 -06:00
Warnings: various fixes (#6582)
* Warnings: various fixes * Use std::ignore
This commit is contained in:
parent
1afc1372bc
commit
044a1c4fc5
7 changed files with 17 additions and 14 deletions
|
@ -2134,7 +2134,7 @@ bool ImGui::BBLBeginCombo(const char *label, const char *preview_value, ImGuiCom
|
|||
bool hovered, held;
|
||||
bool pressed = ButtonBehavior(frame_bb, id, &hovered, &held);
|
||||
|
||||
bool push_color_count = 0;
|
||||
int push_color_count = 0;
|
||||
if (hovered || g.ActiveId == id) {
|
||||
ImGui::PushStyleColor(ImGuiCol_Border, GetColorU32(ImGuiCol_BorderActive));
|
||||
push_color_count = 1;
|
||||
|
@ -2168,7 +2168,7 @@ bool ImGui::BBLBeginCombo(const char *label, const char *preview_value, ImGuiCom
|
|||
OpenPopupEx(popup_id, ImGuiPopupFlags_None);
|
||||
popup_open = true;
|
||||
}
|
||||
if (push_color_count > 0) { ImGui::PopStyleColor(push_color_count); }
|
||||
if (push_color_count > 0) { ImGui::PopStyleColor(push_color_count); }
|
||||
if (!popup_open) return false;
|
||||
|
||||
if (has_window_size_constraint) {
|
||||
|
@ -4170,7 +4170,7 @@ bool ImGui::BBLInputScalar(const char *label, ImGuiDataType data_type, void *p_d
|
|||
// We are only allowed to access the state if we are already the active widget.
|
||||
ImGuiInputTextState *state = GetInputTextState(id);
|
||||
|
||||
bool push_color_count = 0;
|
||||
int push_color_count = 0;
|
||||
if (hovered || g.ActiveId == id) {
|
||||
ImGui::PushStyleColor(ImGuiCol_Border, GetColorU32(ImGuiCol_BorderActive));
|
||||
push_color_count = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue