Skip to content

Commit

Permalink
Fix compiler warning about unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Apr 25, 2024
1 parent 0efea30 commit 098b50e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/notificationnative/notificationnative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class NotificationNative final : public Notification
void onDestroyed();
void onClosed();
void onIgnored();
#if KNOTIFICATIONS_VERSION < QT_VERSION_CHECK(5,245,0)
void onActivated();
#endif
void update();

void notificationLog(const char *message);
Expand Down Expand Up @@ -248,11 +250,13 @@ void NotificationNative::onIgnored()
dropNotification();
}

#if KNOTIFICATIONS_VERSION < QT_VERSION_CHECK(5,245,0)
void NotificationNative::onActivated()
{
notificationLog("onActivated");
dropNotification();
}
#endif

void NotificationNative::update()
{
Expand Down

0 comments on commit 098b50e

Please sign in to comment.