NotificationArea: subscription to errors and warnings

=====================================================

Subscription to errors and warnings is controlled by parameters.
This commit is contained in:
Abdullah Tahiri
2023-03-26 09:43:45 +02:00
committed by abdullahtahiriyo
parent 8321a9defb
commit 8608c6a845

View File

@@ -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) {