gnome-shell/js/ui/status
Andre Moreira Magalhaes bde127b893 rfkill: Always sync state on construction
This fixes an issue where the indicator can be out of sync until the
RfkillManager (used by it) properties change.

The problem is that multiple instances of the indicator will use
the same RfkillManager instance (getRfkillManager() returns a singleton)
that only guarantees to emit the changed signal in two scenarios:
when the D-Bus proxy connects and when the proxy properties change.

If by the time an indicator is instantiated the RfkillManager's D-Bus
proxy is already connected, that indicator would only sync its state
when the RfkillManager properties change.

Let's fix that by always syncing the state on construction - in the worst
case scenario the RfkillManager's D-Bus proxy won't have connected yet
and the indicator state will be temporarily out of sync but once it gets
connected the indicator will sync again with the correct state.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1386
2020-08-11 21:53:20 +02:00
..
accessibility.js a11y: Change HC icon theme first 2020-03-17 12:45:25 +01:00
bluetooth.js js: Use Gjs GTypeName computation for all classes 2019-10-29 18:38:35 +00:00
brightness.js status: Pass scroll events to volume and brightness sliders 2020-07-07 20:59:09 +02:00
dwellClick.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
keyboard.js status/keyboard: Check for monkey-patched property before using it 2020-02-20 19:08:47 +00:00
location.js location: Update desktop file name for privacy settings 2020-03-06 19:16:47 +00:00
network.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
nightLight.js js: Use Gjs GTypeName computation for all classes 2019-10-29 18:38:35 +00:00
power.js power: Fix icon when discharging at 100% 2020-05-26 23:25:54 +02:00
remoteAccess.js cleanup: Don't shadow variables 2019-11-11 19:25:14 +00:00
rfkill.js rfkill: Always sync state on construction 2020-08-11 21:53:20 +02:00
screencast.js js: Use Gjs GTypeName computation for all classes 2019-10-29 18:38:35 +00:00
system.js status/system: Fix session submenu visibility 2020-02-04 14:40:44 +00:00
thunderbolt.js js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
volume.js status: Pass scroll events to volume and brightness sliders 2020-07-07 20:59:09 +02:00