allowing qApp to load overlay/load default scripts if runningscripts empty

This commit is contained in:
Wayne Chen 2018-11-07 16:32:06 -08:00
parent dd1cf1be6c
commit f683a51ef5
2 changed files with 5 additions and 1 deletions

View file

@ -71,7 +71,6 @@ void LoginDialog::showWithSelection() {
tablet->initialScreen(TABLET_LOGIN_DIALOG_URL);
} else {
// let Application handle creating login dialog overlay.
qApp->checkReadyToCreateLoginDialogOverlay();
}
}

View file

@ -320,6 +320,11 @@ void ScriptEngines::loadScripts() {
// loads all saved scripts
auto runningScripts = runningScriptsHandle.get();
if (runningScripts.empty()) {
loadDefaultScripts();
return;
}
for (auto script : runningScripts) {
auto string = script.toString();
if (!string.isEmpty()) {