diff --git a/src/hello_imgui/internal/hello_imgui_ini_settings.cpp b/src/hello_imgui/internal/hello_imgui_ini_settings.cpp index 05e0e3e8..6bc7c2f9 100644 --- a/src/hello_imgui/internal/hello_imgui_ini_settings.cpp +++ b/src/hello_imgui/internal/hello_imgui_ini_settings.cpp @@ -273,17 +273,17 @@ namespace HelloImGui windowsWithSettings.push_back(w); } - for (const auto& dockableWindow: dockingParams.dockableWindows) - { - if ( - std::find(windowsWithSettings.begin(), windowsWithSettings.end(), dockableWindow.label) - == windowsWithSettings.end()) + for (const auto& dockableWindow: dockingParams.dockableWindows) { - return false; + if ( + std::find(windowsWithSettings.begin(), windowsWithSettings.end(), dockableWindow.label) + == windowsWithSettings.end()) + { + return false; + } } + return true; } - return true; - } void SaveDockableWindowsVisibility(const std::string& iniPartsFilename, const DockingParams& dockingParams)