summary refs log tree commit diff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-01-24 06:00:23 +0100
committerGitHub <noreply@github.com>2021-01-24 06:00:23 +0100
commitfc76a939bb3c2eff1d90819d369328df1fa43499 (patch)
tree248c05d57f5998d02ea712a558a85f52ea9de440 /src/main.cpp
parentMerge pull request #406 from rnhmjoj/open-in (diff)
parentWrite database to the DataLocation (diff)
downloadnheko-fc76a939bb3c2eff1d90819d369328df1fa43499.tar.xz
Merge pull request #405 from rnhmjoj/move-state
Write database to the DataLocation
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp

index b1dfa9f6..a890a6fd 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -93,9 +93,9 @@ screenCenter(int width, int height) } void -createCacheDirectory() +createStandardDirectory(QStandardPaths::StandardLocation path) { - auto dir = QStandardPaths::writableLocation(QStandardPaths::CacheLocation); + auto dir = QStandardPaths::writableLocation(path); if (!QDir().mkpath(dir)) { throw std::runtime_error( @@ -188,7 +188,8 @@ main(int argc, char *argv[]) http::init(); - createCacheDirectory(); + createStandardDirectory(QStandardPaths::CacheLocation); + createStandardDirectory(QStandardPaths::AppDataLocation); registerSignalHandlers();