refactor: remove paths::coreProfileDir and its single use for Settings::settingsPath()
This commit is contained in:
parent
37b4e4b57f
commit
f2c16c4432
2 changed files with 1 additions and 13 deletions
|
|
@ -39,11 +39,7 @@ void clearSettings(ConfigScopes &scopes, bool enableRestart)
|
||||||
// the app config and server configs from being applied.
|
// the app config and server configs from being applied.
|
||||||
scopes.save(false);
|
scopes.save(false);
|
||||||
|
|
||||||
auto configDir = paths::configDir();
|
auto profileDir = QDir(Settings::settingsPath());
|
||||||
qDebug("removing config dir: %s", qPrintable(configDir.absolutePath()));
|
|
||||||
configDir.removeRecursively();
|
|
||||||
|
|
||||||
auto profileDir = paths::coreProfileDir();
|
|
||||||
qDebug("removing profile dir: %s", qPrintable(profileDir.absolutePath()));
|
qDebug("removing profile dir: %s", qPrintable(profileDir.absolutePath()));
|
||||||
profileDir.removeRecursively();
|
profileDir.removeRecursively();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,12 +34,4 @@ inline QDir configDir(const bool persist = false)
|
||||||
return orgDir.absolutePath();
|
return orgDir.absolutePath();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Uses the Core tool to get the profile dir.
|
|
||||||
*/
|
|
||||||
inline QDir coreProfileDir()
|
|
||||||
{
|
|
||||||
return QDir(Settings::settingsPath());
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace deskflow::gui::paths
|
} // namespace deskflow::gui::paths
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue