gnome-shell/js
Jonas Dreßler 8431e7ae51 misc/objectManager: Fix emission of object-removed signal
Emitting this signal is broken right now: We check for a length of 0 on
this._objects[objectPath], but the
`this._objects[objectPath][interfaceName] = null` we do before the
check doesn't actually remove the key, it only sets the value to null,
leaving the key around and thus the amount of entries in the object doesn't
change.

Fix that by using the delete statement instead, "delete" properly removes
the key and thus affects the amount of entries in the object, making our
length === 0 check effective.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2730>
2023-04-05 18:43:51 +00:00
..
dbusServices screencastService: Handle case where no videos directory exists 2023-01-11 16:51:30 +00:00
gdm authPrompt: Also replace full-width colon 2023-02-13 20:32:21 +00:00
misc misc/objectManager: Fix emission of object-removed signal 2023-04-05 18:43:51 +00:00
perf Add 'headless start' perf test 2023-02-06 18:10:01 +00:00
portalHelper portalHelper: Switch to soup3-based WebKitGTK 2022-06-21 19:29:02 +00:00
ui powerProfiles: Rename "Power Profiles" to "Power Mode" 2023-04-04 22:09:13 +00:00
js-resources.gresource.xml quickSettings: Add background apps menu 2023-02-12 16:16:36 +00:00
meson.build extensions-app: Move Extensions app to new subproject 2020-03-27 23:33:30 +00:00
portal-resources.gresource.xml js/portal-resources: Add missing fileUtils to js path 2022-11-03 18:02:27 +00:00