mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-03-17 19:52:31 +00:00
[Linux] Use segment control for setting noise control mode (#92)
* [Linux] Enhance GUI with icons * Improve visibility * Smarter hiding of battery values * Add simple opacity based ear detection indication * Hide disconnected devices * Add airpods 3 icon * Support more devices * Better icons * Add documentation * Add segmented control * Support keyboard navigation * Fix ear detection when primary pod changes * Support up to 9 modes with the keyboard * Redisign * Use id * Use correct images * Remove duplicates * Use correct image * Remove more merge conflicts * Remove unused code * Remove unused code * Make all text readbale
This commit is contained in:
@@ -104,7 +104,12 @@ public:
|
||||
// Set primary and secondary pods based on order
|
||||
if (!podsInPacket.isEmpty())
|
||||
{
|
||||
primaryPod = podsInPacket[0]; // First pod is primary
|
||||
Component newPrimaryPod = podsInPacket[0]; // First pod is primary
|
||||
if (newPrimaryPod != primaryPod)
|
||||
{
|
||||
primaryPod = newPrimaryPod;
|
||||
emit primaryChanged();
|
||||
}
|
||||
}
|
||||
if (podsInPacket.size() >= 2)
|
||||
{
|
||||
@@ -166,6 +171,7 @@ public:
|
||||
|
||||
signals:
|
||||
void batteryStatusChanged();
|
||||
void primaryChanged();
|
||||
|
||||
private:
|
||||
bool isStatus(Component component, BatteryStatus status) const
|
||||
|
||||
Reference in New Issue
Block a user