mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-01-28 22:01:50 +00:00
[Linux] Reset tray icon when airpods disconnect
This commit is contained in:
@@ -440,6 +440,7 @@ private slots:
|
|||||||
trayManager->showNotification(
|
trayManager->showNotification(
|
||||||
tr("AirPods Disconnected"),
|
tr("AirPods Disconnected"),
|
||||||
tr("Your AirPods have been disconnected"));
|
tr("Your AirPods have been disconnected"));
|
||||||
|
trayManager->resetTrayIcon();
|
||||||
}
|
}
|
||||||
|
|
||||||
void bluezDeviceDisconnected(const QString &address, const QString &name)
|
void bluezDeviceDisconnected(const QString &address, const QString &name)
|
||||||
|
|||||||
@@ -33,6 +33,12 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void resetTrayIcon()
|
||||||
|
{
|
||||||
|
trayIcon->setIcon(QIcon(":/icons/assets/airpods.png"));
|
||||||
|
trayIcon->setToolTip("");
|
||||||
|
}
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void notificationsEnabledChanged(bool enabled);
|
void notificationsEnabledChanged(bool enabled);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user