diff --git a/linux/main.cpp b/linux/main.cpp index 05e099a..1198d44 100644 --- a/linux/main.cpp +++ b/linux/main.cpp @@ -440,6 +440,7 @@ private slots: trayManager->showNotification( tr("AirPods Disconnected"), tr("Your AirPods have been disconnected")); + trayManager->resetTrayIcon(); } void bluezDeviceDisconnected(const QString &address, const QString &name) diff --git a/linux/trayiconmanager.h b/linux/trayiconmanager.h index a6384e3..25c1530 100644 --- a/linux/trayiconmanager.h +++ b/linux/trayiconmanager.h @@ -33,6 +33,12 @@ public: } } + void resetTrayIcon() + { + trayIcon->setIcon(QIcon(":/icons/assets/airpods.png")); + trayIcon->setToolTip(""); + } + signals: void notificationsEnabledChanged(bool enabled);