mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 09:04:33 +02:00
allowing qApp to load overlay/load default scripts if runningscripts empty
This commit is contained in:
parent
dd1cf1be6c
commit
f683a51ef5
2 changed files with 5 additions and 1 deletions
|
@ -71,7 +71,6 @@ void LoginDialog::showWithSelection() {
|
|||
tablet->initialScreen(TABLET_LOGIN_DIALOG_URL);
|
||||
} else {
|
||||
// let Application handle creating login dialog overlay.
|
||||
qApp->checkReadyToCreateLoginDialogOverlay();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue