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 | 271 | void ScriptEngines::loadScripts() { |
| 272 | 272 | // check first run... |
| 273 | − if (_firstRun.get()) { | |
| 273 | + Setting::Handle<bool> firstRun { Settings::firstRun, true }; | |
| 274 | + if (firstRun.get()) { | |
| 274 | 275 | qCDebug(scriptengine) << "This is a first run..."; |
| 275 | 276 | // clear the scripts, and set out script to our default scripts |
| 276 | 277 | clearScripts(); |
| 277 | 278 | loadDefaultScripts(); |
| 278 | − _firstRun.set(false); | |
| 279 | 279 | return; |
| 280 | 280 | } |
| 281 | 281 | |