History

Merge pull request #7856 from ZappoMan/NUEtweaks

don't show help or login on first run

Brad Hefta-Gaub committed 10 years ago

Commit e01681e2 parents 757eea1 62b3c127 files · +63 −10Browse files

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

Unified · Split

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