diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2021-01-19 19:44:22 +0100 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2021-01-24 00:40:19 +0100 |
commit | 0e628290af2bd3cf35c322e22bf17bad59187ecf (patch) | |
tree | 3eafa3c78a98aad80edb7817f8982aa87799bab0 /src/main.cpp | |
parent | Merge pull request #395 from LorenDB/master (diff) | |
download | nheko-0e628290af2bd3cf35c322e22bf17bad59187ecf.tar.xz |
Write database to the DataLocation
Diffstat (limited to '')
-rw-r--r-- | src/main.cpp | 7 |
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(); |