History

cleanup firstRun with a common setting

Brad Hefta-Gaub committed 10 years ago

Commit 33c5cb51 parent 22f4bea6 files · +12 −5Browse files

Showing the changes to libraries/script-engine/src/ScriptEngines.cpp (1 of 6 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngines.cpp+2−2
@@ -270,12 +270,12 @@ void ScriptEngines::loadOneScript(const QString& scriptFilename) { · 269 unmodified lines
270 270
271void ScriptEngines::loadScripts() {271void 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 scripts276 // 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