gnome-shell/js/ui/status
Florian Müllner 4fd4b09919 status/bluetooth: Fix remembering set up devices
It is generally not possible to differentiate between systems
without bluetooth support, and systems where a bluetooth adapter
is powered down.

We work around that by tracking whether there are any set up devices,
and keep the bluetooth visible in that case, even when no adapter
is present.

However commit eeabdd150c moved updating the setting into the code
that handles adapter changes, which is exactly the place where we
carefully avoid changing the setting because it would be too
unreliable (devices may have already disappeared, or not yet
appeared).

Fix this by changing _setHadSetupDevices() to _syncHadSetupDevices()
and call that everywhere _sync() used to be called, *except* on
adapter changes.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5714

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2409>
2022-08-10 17:19:07 +00:00
..
accessibility.js js: Use templates for non-translatable strings 2022-02-12 12:29:52 +00:00
autoRotate.js status/autoRotate: Port to quick settings 2022-08-02 16:05:28 +00:00
bluetooth.js status/bluetooth: Fix remembering set up devices 2022-08-10 17:19:07 +00:00
brightness.js status/brightness: Port to quick settings 2022-08-03 12:41:05 +00:00
darkMode.js status/darkMode: Add dark mode toggle 2022-08-02 16:05:28 +00:00
dwellClick.js cleanup: Use new indentation style for object literals 2022-02-23 12:23:52 +00:00
keyboard.js cleanup: Use deepUnpack() intead of deep_unpack() 2022-08-10 10:29:24 +00:00
location.js cleanup: Minimize deep_unpack() usage 2022-08-10 10:29:24 +00:00
network.js status/network: Request scans while wireless menu is open 2022-08-10 16:37:15 +00:00
nightLight.js cleanup: Minimize deep_unpack() usage 2022-08-10 10:29:24 +00:00
powerProfiles.js cleanup: Minimize deep_unpack() usage 2022-08-10 10:29:24 +00:00
remoteAccess.js status/remoteAccess: Move to quick settings 2022-08-02 16:05:28 +00:00
rfkill.js cleanup: Use deepUnpack() intead of deep_unpack() 2022-08-10 10:29:24 +00:00
system.js status/power: Merge with system indicator 2022-08-03 12:41:05 +00:00
thunderbolt.js cleanup: Minimize deep_unpack() usage 2022-08-10 10:29:24 +00:00
volume.js status/volume: Port to quick settings 2022-08-03 12:41:05 +00:00