From c26d9a0924d35417d6fbaf7c3d73ca803f85307e Mon Sep 17 00:00:00 2001 From: Gres Date: Fri, 17 Apr 2020 17:48:13 +0300 Subject: [PATCH] Place downloadable resources in one dir --- src/settings.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/settings.cpp b/src/settings.cpp index de26161..1e36e6e 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -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";