NotificationArea: subscription to errors and warnings
===================================================== Subscription to errors and warnings is controlled by parameters.
This commit is contained in:
committed by
abdullahtahiriyo
parent
8321a9defb
commit
8608c6a845
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user