Small fix to display errors and warnings from backend

This commit is contained in:
Alessandro Autiero
2024-07-10 15:19:20 +02:00
parent cd8c8e6dd9
commit 1ef4e76768

View File

@@ -307,7 +307,9 @@ extension ServerControllerDialog on BackendController {
onDismissed: onDismissed,
action: action
);
_infoBars.add(result);
if(severity == InfoBarSeverity.info || severity == InfoBarSeverity.success) {
_infoBars.add(result);
}
return result;
}
}