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;
const auto baseDataPath =
isPortable
? QDir().absolutePath()
: QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
(isPortable ? QDir().absolutePath()
: QStandardPaths::writableLocation(
QStandardPaths::AppDataLocation)) +
"/assets";
tessdataPath = baseDataPath + "/tessdata";
translatorsDir = baseDataPath + "/translators";
hunspellDir = baseDataPath + "/hunspell";