From fe0ddf85e4279957e9248d64cd5696e3a9951814 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Thu, 13 Mar 2025 22:52:33 -0400 Subject: [PATCH] refactor: remove coretool from path.h --- src/lib/gui/paths.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/lib/gui/paths.h b/src/lib/gui/paths.h index cdfdaf937..8fddb4d09 100644 --- a/src/lib/gui/paths.h +++ b/src/lib/gui/paths.h @@ -6,12 +6,9 @@ #pragma once -#include "common/constants.h" -#include "core/CoreTool.h" +#include "common/Settings.h" #include -#include -#include namespace deskflow::gui::paths { @@ -20,7 +17,7 @@ namespace deskflow::gui::paths { */ inline QDir configDir(const bool persist = false) { - const QDir configDir(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)); + const QDir configDir(Settings::settingsPath()); // HACK: since we have the org name set to the app name, the config dir is // confusing. make this simple by using the org dir instead. @@ -42,8 +39,7 @@ inline QDir configDir(const bool persist = false) */ inline QDir coreProfileDir() { - CoreTool coreTool; - return QDir(coreTool.getProfileDir()); + return QDir(Settings::settingsPath()); } } // namespace deskflow::gui::paths