mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-21 16:15:58 -05:00
Stop reporting interruption errors
This commit is contained in:
@@ -109,7 +109,14 @@ void Scripting::populateGlobalObject(MainWindow *mainWindow) {
|
||||
}
|
||||
|
||||
bool Scripting::tryErrorJS(QJSValue js) {
|
||||
if (!js.isError()) return false;
|
||||
if (!js.isError())
|
||||
return false;
|
||||
|
||||
// The script engine is interrupted during project reopen, during which
|
||||
// all script modules intentionally return as error objects.
|
||||
// We don't need to report these "errors" to the user.
|
||||
if (!instance || !instance->engine || !instance->engine->isInterrupted())
|
||||
return false;
|
||||
|
||||
// Get properties of the error
|
||||
QFileInfo file(js.property("fileName").toString());
|
||||
|
||||
Reference in New Issue
Block a user