From 73b0edad7c3242ab20d87083422836ac879c6583 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 19 Feb 2022 22:04:55 -0500 Subject: [PATCH] GUI: prevent layout reset --- src/gui/gui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index a3ad1c459..b19d461e3 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -5445,6 +5445,7 @@ bool FurnaceGUI::init() { ImGui::GetIO().ConfigFlags|=ImGuiConfigFlags_DockingEnable; ImGui::GetIO().IniFilename=finalLayoutPath; + ImGui::LoadIniSettingsFromDisk(finalLayoutPath); ImGuiFileDialog::Instance()->SetFileStyle(IGFD_FileStyleByTypeDir,"",ImVec4(0.0f,1.0f,1.0f,1.0f),ICON_FA_FOLDER_O); ImGuiFileDialog::Instance()->SetFileStyle(IGFD_FileStyleByTypeFile,"",ImVec4(0.7f,0.7f,0.7f,1.0f),ICON_FA_FILE_O);