Dismiss notifications correctly
This commit is contained in:
parent
230377dabe
commit
a163c3f046
|
@ -81,7 +81,7 @@ void TrayIcon::handleActivated(QSystemTrayIcon::ActivationReason reason)
|
|||
|
||||
void TrayIcon::handleMessageClicked()
|
||||
{
|
||||
m_trayMenu.widget()->connection().considerAllNotificationsRead();
|
||||
m_trayMenu.widget()->dismissNotifications();
|
||||
}
|
||||
|
||||
void TrayIcon::showInternalError(const QString &errorMsg)
|
||||
|
|
|
@ -241,6 +241,11 @@ void TrayWidget::showNotifications()
|
|||
}
|
||||
m_notifications.clear();
|
||||
showDialog(dlg);
|
||||
dismissNotifications();
|
||||
}
|
||||
|
||||
void TrayWidget::dismissNotifications()
|
||||
{
|
||||
m_connection.considerAllNotificationsRead();
|
||||
m_ui->notificationsPushButton->setHidden(true);
|
||||
if(m_menu && m_menu->icon()) {
|
||||
|
|
|
@ -57,6 +57,7 @@ public slots:
|
|||
void showOwnDeviceId();
|
||||
void showLog();
|
||||
void showNotifications();
|
||||
void dismissNotifications();
|
||||
void restartSyncthing();
|
||||
void quitTray();
|
||||
|
||||
|
|
Loading…
Reference in New Issue