From 4a90dd41e6f0008c2e0c84781f29f2276c467ff4 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 22 Jul 2020 16:30:16 +0900 Subject: [PATCH] Dont save window settings for help windows --- src/imgui_helper.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/imgui_helper.hpp b/src/imgui_helper.hpp index a2eb0af..dc80e51 100644 --- a/src/imgui_helper.hpp +++ b/src/imgui_helper.hpp @@ -22,7 +22,7 @@ namespace Tri { state->get_width() - 20.0f, state->get_height() - 20.0f)); ImGui::SetNextWindowBgAlpha(0.7f); - ImGui::Begin("Help Window", nullptr, ImGuiWindowFlags_NoDecoration); + ImGui::Begin("Help Window", nullptr, ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoSavedSettings); ImGui::Text("This is the help window - Press \"H\" to toggle this window"); ImGui::Text("Click anywhere to create triangles, one point at a time"); ImGui::Text("Press \"U\" to undo. Clicking will remove all future undo history"); @@ -43,7 +43,7 @@ namespace Tri { ImGui::SetNextWindowSize(sf::Vector2f( SHOW_HELP_WIDTH, SHOW_HELP_HEIGHT)); - ImGui::Begin("Use Help Window", nullptr, ImGuiWindowFlags_NoDecoration); + ImGui::Begin("Use Help Window", nullptr, ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoSavedSettings); ImGui::SetWindowFontScale(3.0f); ImGui::Text("Press \"H\" for help"); ImGui::End();