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
270270
271271 void ScriptEngines::loadScripts() {
272272 // check first run...
273− if (_firstRun.get()) {
273+ Setting::Handle<bool> firstRun { Settings::firstRun, true };
274+ if (firstRun.get()) {
274275 qCDebug(scriptengine) << "This is a first run...";
275276 // clear the scripts, and set out script to our default scripts
276277 clearScripts();
277278 loadDefaultScripts();
278− _firstRun.set(false);
279279 return;
280280 }
281281