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