fix: Welcome screen quick settings executing handler more than once

This commit is contained in:
WerWolv
2025-08-18 20:04:20 +02:00
parent 35a357f1a8
commit 7f5ae41d8a
2 changed files with 3 additions and 4 deletions

View File

@@ -15,9 +15,9 @@
namespace hex {
static AutoReset<std::map<std::string, WorkspaceManager::Workspace>> s_workspaces;
static decltype(s_workspaces)::Type::iterator s_currentWorkspace = s_workspaces->end();
static decltype(s_workspaces)::Type::iterator s_previousWorkspace = s_workspaces->end();
static decltype(s_workspaces)::Type::iterator s_workspaceToRemove = s_workspaces->end();
static auto s_currentWorkspace = s_workspaces->end();
static auto s_previousWorkspace = s_workspaces->end();
static auto s_workspaceToRemove = s_workspaces->end();
void WorkspaceManager::createWorkspace(const std::string& name, const std::string &layout) {
s_currentWorkspace = s_workspaces->insert_or_assign(name, Workspace {