Rework UnexpectedErrorPopup to be more practical

- Instead of opening a popup for every single error that occurs,
  combine them into an unique one

- Increase the maximum width, make those tracebacks readable
This commit is contained in:
miruka
2021-04-14 15:15:51 -04:00
parent 2aebab5919
commit 49f97d614e
3 changed files with 61 additions and 18 deletions

View File

@@ -60,9 +60,8 @@ Python {
return
}
window.makePopup(
"Popups/UnexpectedErrorPopup.qml",
{ errorType: type, message, traceback },
)
const popup = window.mainUI.unexpectedErrorPopup
popup.errors.unshift({type, message, traceback})
popup.errorsChanged()
}
}