impr: Make sure all views are closed before loading new workspace or layout

This commit is contained in:
WerWolv
2023-12-24 14:51:47 +01:00
parent d2d244ebc7
commit 98bc89cb39
3 changed files with 17 additions and 0 deletions

View File

@@ -89,6 +89,7 @@ namespace hex {
if (s_previousWorkspace != s_workspaces.end())
exportToFile(s_previousWorkspace->second.path, s_previousWorkspace->first);
LayoutManager::closeAllViews();
ImGui::LoadIniSettingsFromMemory(s_currentWorkspace->second.layout.c_str());
s_previousWorkspace = s_currentWorkspace;