mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-09 16:15:45 +00:00
Fix urgency level in freedesktop notifications.
This commit is contained in:
parent
9057d1735f
commit
4685c7fe21
@ -57,11 +57,11 @@ void FreedesktopBackend::slotNotify(Notification noti)
|
||||
hints.insert(QLatin1String("image_data"), QVariant::fromValue(image));
|
||||
}
|
||||
|
||||
char urgency = '1';
|
||||
char urgency = 1;
|
||||
if (noti.priority() < 0) {
|
||||
urgency = '0';
|
||||
urgency = 0;
|
||||
} else if (noti.priority() > 2) {
|
||||
urgency = '2';
|
||||
urgency = 2;
|
||||
}
|
||||
hints.insert(QLatin1String("urgency"), urgency);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user