[Linux] Reset tray icon when airpods disconnect

This commit is contained in:
Tim Gromeyer
2025-05-16 14:08:20 +02:00
parent fd917d3fd0
commit 09e1aa1530
2 changed files with 7 additions and 0 deletions

View File

@@ -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)

View File

@@ -33,6 +33,12 @@ public:
}
}
void resetTrayIcon()
{
trayIcon->setIcon(QIcon(":/icons/assets/airpods.png"));
trayIcon->setToolTip("");
}
signals:
void notificationsEnabledChanged(bool enabled);