From 8608c6a845ef99e6c5ecf44677fc51ac0710b66d Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Sun, 26 Mar 2023 09:43:45 +0200 Subject: [PATCH] NotificationArea: subscription to errors and warnings ===================================================== Subscription to errors and warnings is controlled by parameters. --- src/Gui/NotificationArea.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Gui/NotificationArea.cpp b/src/Gui/NotificationArea.cpp index 562b37cee8..325786ebbb 100644 --- a/src/Gui/NotificationArea.cpp +++ b/src/Gui/NotificationArea.cpp @@ -675,6 +675,16 @@ NotificationArea::ParameterObserver::ParameterObserver(NotificationArea* notific auto enabled = hGrp->GetBool(string.c_str(), true); notificationArea->pImp->preventNonIntrusiveNotificationsWhenWindowNotActive = enabled; }}, + {"ErrorSubscriptionEnabled", + [this](const std::string& string) { + auto enabled = hGrp->GetBool(string.c_str(), true); + notificationArea->pImp->observer->bErr = enabled; + }}, + {"WarningSubscriptionEnabled", + [this](const std::string& string) { + auto enabled = hGrp->GetBool(string.c_str(), true); + notificationArea->pImp->observer->bWrn = enabled; + }}, }; for (auto& val : parameterMap) {