Place downloadable resources in one dir
This commit is contained in:
parent
7b1d7b9eeb
commit
c26d9a0924
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user