mirror of
https://github.com/status-im/snorenotify.git
synced 2025-02-26 23:10:39 +00:00
Do not set notification identifier
Signed-off-by: Max Risuhin <risuhin.max@gmail.com>
This commit is contained in:
parent
281517c643
commit
ceebcfc209
@ -149,12 +149,13 @@ OSXNotificationCenter::~OSXNotificationCenter()
|
||||
|
||||
void OSXNotificationCenter::slotNotify(Snore::Notification notification)
|
||||
{
|
||||
qDebug() << "!!! OSXNotificationCenter::slotNotify";
|
||||
NSUserNotification * osxNotification = [[[NSUserNotification alloc] init] autorelease];
|
||||
NSString * notificationId = [NSString stringWithFormat:@"%d",notification.id()];
|
||||
osxNotification.title = notification.title().toNSString();
|
||||
osxNotification.userInfo = [NSDictionary dictionaryWithObjectsAndKeys:notificationId, @"id", nil];
|
||||
osxNotification.informativeText = notification.text().toNSString();
|
||||
osxNotification.identifier = notificationId;
|
||||
// osxNotification.identifier = notificationId;
|
||||
|
||||
// Add notification to mapper from id to Nofification / NSUserNotification
|
||||
m_IdToNotification.insert(notification.id(), notification);
|
||||
|
Loading…
x
Reference in New Issue
Block a user