diff --git a/lib/libimhex/source/api/workspace_manager.cpp b/lib/libimhex/source/api/workspace_manager.cpp index bf7700d70..f1831831a 100644 --- a/lib/libimhex/source/api/workspace_manager.cpp +++ b/lib/libimhex/source/api/workspace_manager.cpp @@ -15,9 +15,9 @@ namespace hex { static AutoReset> 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 { diff --git a/plugins/builtin/source/content/welcome_screen.cpp b/plugins/builtin/source/content/welcome_screen.cpp index f33b5c0d3..383c99d65 100644 --- a/plugins/builtin/source/content/welcome_screen.cpp +++ b/plugins/builtin/source/content/welcome_screen.cpp @@ -535,7 +535,6 @@ namespace hex::plugin::builtin { for (auto &[onIcon, offIcon, unlocalizedTooltip, toggleCallback, state] : quickSettings) { ImGui::PushID(id + 1); if (ImGuiExt::DimmedIconToggle(onIcon.c_str(), offIcon.c_str(), &state)) { - toggleCallback(state); ContentRegistry::Settings::write("hex.builtin.settings.quick_settings", unlocalizedTooltip, state); } if (id % 5 > 0)