mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-03-13 17:52:56 +00:00
Reset GUI when airpods disconnect, show notification
This commit is contained in:
@@ -21,11 +21,17 @@ class Battery : public QObject
|
||||
|
||||
public:
|
||||
explicit Battery(QObject *parent = nullptr) : QObject(parent)
|
||||
{
|
||||
reset();
|
||||
}
|
||||
|
||||
void reset()
|
||||
{
|
||||
// Initialize all components to unknown state
|
||||
states[Component::Left] = {};
|
||||
states[Component::Right] = {};
|
||||
states[Component::Case] = {};
|
||||
emit batteryStatusChanged();
|
||||
}
|
||||
|
||||
// Enum for AirPods components
|
||||
|
||||
Reference in New Issue
Block a user