diff --git a/src/lib/gui/diagnostic.cpp b/src/lib/gui/diagnostic.cpp index eeb667d68..577f22aa9 100644 --- a/src/lib/gui/diagnostic.cpp +++ b/src/lib/gui/diagnostic.cpp @@ -39,11 +39,7 @@ void clearSettings(ConfigScopes &scopes, bool enableRestart) // the app config and server configs from being applied. scopes.save(false); - auto configDir = paths::configDir(); - qDebug("removing config dir: %s", qPrintable(configDir.absolutePath())); - configDir.removeRecursively(); - - auto profileDir = paths::coreProfileDir(); + auto profileDir = QDir(Settings::settingsPath()); qDebug("removing profile dir: %s", qPrintable(profileDir.absolutePath())); profileDir.removeRecursively(); diff --git a/src/lib/gui/paths.h b/src/lib/gui/paths.h index 8fddb4d09..9fbaa2814 100644 --- a/src/lib/gui/paths.h +++ b/src/lib/gui/paths.h @@ -34,12 +34,4 @@ inline QDir configDir(const bool persist = false) return orgDir.absolutePath(); } -/** - * @brief Uses the Core tool to get the profile dir. - */ -inline QDir coreProfileDir() -{ - return QDir(Settings::settingsPath()); -} - } // namespace deskflow::gui::paths