mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: Workspaces not being updated correctly
This commit is contained in:
@@ -133,7 +133,10 @@ namespace hex {
|
||||
if (s_previousWorkspace != s_currentWorkspace) {
|
||||
log::info("Updating workspace");
|
||||
if (s_previousWorkspace != s_workspaces->end()) {
|
||||
auto newWorkspace = s_currentWorkspace;
|
||||
s_currentWorkspace = s_previousWorkspace;
|
||||
exportToFile(s_previousWorkspace->second.path, s_previousWorkspace->first, s_previousWorkspace->second.builtin);
|
||||
s_currentWorkspace = newWorkspace;
|
||||
}
|
||||
|
||||
LayoutManager::closeAllViews();
|
||||
|
||||
Reference in New Issue
Block a user