History

Make "failed to load script" message less intrusive

Ada committed 1 year ago

Commit 19f065f1 parent 930e3a42 files · +7 −1Browse files

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

Unified · Split

libraries/script-engine/src/ScriptManager.cpp+5−0
@@ -579,6 +579,11 @@ void ScriptManager::loadURL(const QUrl& scriptURL, bool reload) { · 578 unmodified lines
579 if (!success) {579 if (!success) {
580 scriptErrorMessage("ERROR Loading file (" + status + "):" + url, url, -1);580 scriptErrorMessage("ERROR Loading file (" + status + "):" + url, url, -1);
581 emit errorLoadingScript(_fileNameString);581 emit errorLoadingScript(_fileNameString);
582
583 // emitting scriptLoaded will keep Interface from discarding
584 // scripts that might only be temporarily unavailable
585 emit scriptLoaded(url);
586
582 return;587 return;
583 }588 }
584 589