Place downloadable resources in one dir

This commit is contained in:
Gres 2020-04-17 17:48:13 +03:00
parent 7b1d7b9eeb
commit c26d9a0924

View File

@ -326,9 +326,10 @@ void Settings::setPortable(bool isPortable)
isPortable_ = isPortable; isPortable_ = isPortable;
const auto baseDataPath = const auto baseDataPath =
isPortable (isPortable ? QDir().absolutePath()
? QDir().absolutePath() : QStandardPaths::writableLocation(
: QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); QStandardPaths::AppDataLocation)) +
"/assets";
tessdataPath = baseDataPath + "/tessdata"; tessdataPath = baseDataPath + "/tessdata";
translatorsDir = baseDataPath + "/translators"; translatorsDir = baseDataPath + "/translators";
hunspellDir = baseDataPath + "/hunspell"; hunspellDir = baseDataPath + "/hunspell";