| 329 | } |
| 330 | |
| 331 | void Settings::setPortable(bool isPortable) |
| 332 | { |
| 333 | isPortable_ = isPortable; |
| 334 | |
| 335 | const auto baseDataPath = |
| 336 | (isPortable ? QApplication::applicationDirPath() |
| 337 | : QStandardPaths::writableLocation( |
| 338 | QStandardPaths::AppDataLocation)) + |
| 339 | "/assets"; |
| 340 | tessdataPath = baseDataPath + "/tessdata"; |
| 341 | translatorsPath = baseDataPath + "/translators"; |
| 342 | hunspellPath = baseDataPath + "/hunspell"; |
| 343 | } |
no outgoing calls
no test coverage detected