1
0
mirror of synced 2024-11-28 01:20:51 +01:00

fix: Workspaces not being exported correctly

This commit is contained in:
WerWolv 2024-01-29 20:50:00 +01:00
parent cecb8b8d31
commit 6a146e239a

View File

@ -16,10 +16,10 @@ namespace hex {
decltype(WorkspaceManager::s_workspaces)::iterator WorkspaceManager::s_previousWorkspace = s_workspaces.end();
void WorkspaceManager::createWorkspace(const std::string& name, const std::string &layout) {
s_workspaces[name] = Workspace {
s_currentWorkspace = s_workspaces.insert_or_assign(name, Workspace {
.layout = layout.empty() ? LayoutManager::saveToString() : layout,
.path = {}
};
}).first;
for (const auto &path : fs::getDefaultPaths(fs::ImHexPath::Workspaces)) {
if (exportToFile(path / (name + ".hexws")))