../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:433:11: warning: unused variable 'checkbox_width' [-Wunused-variable]
../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:227:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:245:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
This commit is contained in:
Filip Sykala 2021-10-18 20:07:13 +02:00
parent 88f9a387e3
commit 76cbb7c17e

View File

@ -224,7 +224,7 @@ void GLGizmoSimplify::on_render_input_window(float x, float y, float bottom_limi
m_state = State::canceling; m_state = State::canceling;
} }
} else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && is_canceling) } else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && is_canceling)
ImGui::SetTooltip(_L("Operation already canceling. Please wait few seconds.").c_str()); ImGui::SetTooltip("%s", _u8L("Operation already canceling. Please wait few seconds.").c_str());
m_imgui->disabled_end(); // state canceling m_imgui->disabled_end(); // state canceling
ImGui::SameLine(); ImGui::SameLine();
@ -242,7 +242,7 @@ void GLGizmoSimplify::on_render_input_window(float x, float y, float bottom_limi
close(); close();
} }
} else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && is_processing) } else if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) && is_processing)
ImGui::SetTooltip(_L("Can't apply when proccess preview.").c_str()); ImGui::SetTooltip("%s", _u8L("Can't apply when proccess preview.").c_str());
m_imgui->disabled_end(); // state !settings m_imgui->disabled_end(); // state !settings
// draw progress bar // draw progress bar
@ -430,8 +430,6 @@ void GLGizmoSimplify::create_gui_cfg() {
cfg.window_offset_x = (cfg.bottom_left_width + cfg.input_width)/2; cfg.window_offset_x = (cfg.bottom_left_width + cfg.input_width)/2;
cfg.window_offset_y = ImGui::GetTextLineHeightWithSpacing() * 5; cfg.window_offset_y = ImGui::GetTextLineHeightWithSpacing() * 5;
float checkbox_width = ImGui::GetFrameHeight();
m_gui_cfg = cfg; m_gui_cfg = cfg;
} }