MCPcopy Create free account
hub / github.com/OneMoreGres/ScreenTranslator / setPortable

Method setPortable

src/settings.cpp:331–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331void 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}

Callers 2

settingsMethod · 0.80
updateStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected