summary refs log tree commit diff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-06-20 21:35:55 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2024-06-20 21:35:55 +0200
commita486d8d7fc567c191e7259b478b6f03b3800ac4a (patch)
tree9f01f7bb80df5b2502d92d91fe1329209224289c /src/MainWindow.cpp
parentFix QT_CONFIG check for wayland is only available since Qt6.7 (diff)
downloadnheko-a486d8d7fc567c191e7259b478b6f03b3800ac4a.tar.xz
Fix tray icon badge count not getting updated since 838b091acd07b681fc52f6f705b2bee8ce8519d5
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r--src/MainWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index ea9f560d..42a1521d 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -60,7 +60,7 @@ MainWindow::MainWindow(QWindow *parent)
 
     connect(chat_page_, &ChatPage::closing, this, [this] { switchToLoginPage(""); });
     connect(chat_page_, &ChatPage::unreadMessages, this, &MainWindow::setWindowTitle);
-    connect(chat_page_, SIGNAL(unreadMessages(int)), trayIcon_, SLOT(setUnreadCount(int)));
+    connect(chat_page_, &ChatPage::unreadMessages, trayIcon_, &TrayIcon::setUnreadCount);
     connect(chat_page_, &ChatPage::showLoginPage, this, &MainWindow::switchToLoginPage);
     connect(chat_page_, &ChatPage::showNotification, this, &MainWindow::showNotification);