mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-10 00:25:43 +00:00
dont emit action invoked when it doesnt make sense
This commit is contained in:
parent
03452acf12
commit
ac2126e305
@ -119,11 +119,6 @@ void FreedesktopBackend::slotNotificationClosed ( const uint &id,const uint &rea
|
||||
return;
|
||||
Notification noti = getActiveNotificationByID(m_dbusIdMap.take(id));
|
||||
m_snoreIdMap.remove(noti.id());
|
||||
|
||||
if(closeReason == NotificationEnums::CloseReasons::CLOSED)
|
||||
{
|
||||
snore()->notificationActionInvoked(noti);
|
||||
}
|
||||
closeNotification(noti, closeReason);
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,6 @@ public:
|
||||
switch(action){
|
||||
case SnarlEnums::CallbackInvoked:
|
||||
reason = NotificationEnums::CloseReasons::CLOSED;
|
||||
m_snarl->snore()->notificationActionInvoked(notification);
|
||||
break;
|
||||
case SnarlEnums::NotifyAction:
|
||||
reason = NotificationEnums::CloseReasons::CLOSED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user