don't show help or login on first run
Showing the changes to libraries/script-engine/src/ScriptEngines.cpp (1 of 7 files). Show all
Unified · Split
| @@ -271,12 +271,12 @@ void ScriptEngines::loadOneScript(const QString& scriptFilename) { · 270 unmodified lines | |||
| 271 | 271 | ||
| 272 | void ScriptEngines::loadScripts() { | 272 | void ScriptEngines::loadScripts() { |
| 273 | // check first run... | 273 | // check first run... |
| 274 | if (_firstRun.get()) { | 274 | Setting::Handle<bool> firstRun { Settings::firstRun, true }; |
| 275 | if (firstRun.get()) { | ||
| 275 | qCDebug(scriptengine) << "This is a first run..."; | 276 | qCDebug(scriptengine) << "This is a first run..."; |
| 276 | // clear the scripts, and set out script to our default scripts | 277 | // clear the scripts, and set out script to our default scripts |
| 277 | clearScripts(); | 278 | clearScripts(); |
| 278 | loadDefaultScripts(); | 279 | loadDefaultScripts(); |
| 279 | _firstRun.set(false); | ||
| 280 | return; | 280 | return; |
| 281 | } | 281 | } |
| 282 | 282 | ||