Skip to content

Commit

Permalink
Fix showing same notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Apr 25, 2024
1 parent 1ca135b commit 73f4e33
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/gui/notificationnative/notificationnative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,6 @@ void NotificationNative::close()
notification->close();

notificationLog("Closed");

emit closeNotification(this);
}

void NotificationNative::onButtonClicked(unsigned int id)
Expand Down Expand Up @@ -337,12 +335,12 @@ void NotificationNative::notificationLog(const char *message)
KNotification *NotificationNative::dropNotification()
{
m_closed = true;
if (!m_notification)
return nullptr;

auto notification = m_notification;
m_notification = nullptr;
notification->disconnect(this);
if (notification) {
m_notification = nullptr;
notification->disconnect(this);
}
emit closeNotification(this);
return notification;
}

Expand Down

0 comments on commit 73f4e33

Please sign in to comment.