Cleanup error reporting

This commit is contained in:
Tobias Fella
2023-12-02 21:14:57 +01:00
parent 1213ba5916
commit c2641a5fc2
5 changed files with 15 additions and 19 deletions

View File

@@ -297,8 +297,8 @@ Kirigami.ApplicationWindow {
Connections {
target: Controller
function onGlobalErrorOccured(error, detail) {
showPassiveNotification(i18n("%1: %2", error, detail));
function onErrorOccured(error, detail) {
showPassiveNotification(detail.length > 0 ? i18n("%1: %2", error, detail) : error);
}
function onUserConsentRequired(url) {