gnome-shell/js/misc
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
..
config.js.in screenshot: Move HAVE_RECORDER check into screencast service 2022-11-04 09:51:20 +00:00
dbusUtils.js dbusServices: Refactor service utilities from fileUtils into dbusUtils 2022-07-05 03:41:41 -04:00
extensionUtils.js extensionUtils: Add DISABLING and ENABLING extension states 2022-12-01 12:59:32 +00:00
fileUtils.js fileUtils: Do not follow symlinks 2022-12-15 22:34:26 +00:00
gnomeSession.js endSessionDialog: Only show logout inhibiting apps 2021-02-24 15:31:03 +00:00
history.js Adopt EventEmitter class instead of injecting Signal methods 2022-07-04 18:30:49 -04:00
ibusManager.js ibusManager: Make more resilient to completion/engine independent changes 2022-10-26 10:00:37 +00:00
inputMethod.js inputMethod: Make set_surrounding() send also empty string 2023-02-01 14:42:32 +00:00
introspect.js js: Get monitor manager from backend 2022-12-16 22:12:59 +01:00
jsParse.js cleanup: Remove empty leading/trailing lines in blocks 2020-11-16 18:04:23 +00:00
keyboardManager.js keyboard: Fix display keyboard layout crash with some input methods 2021-03-29 09:33:45 +00:00
loginManager.js loginManager: Fix canRebootToBootLoaderMenu() result 2022-09-06 20:57:49 +00:00
meson.build config: Check runtime dependencies at runtime 2022-05-20 12:00:22 +00:00
modemManager.js Update to drop GTK3 dependency 2023-03-03 20:38:03 +00:00
objectManager.js misc/objectManager: Fix emission of object-removed signal 2023-04-05 18:43:51 +00:00
params.js cleanup: Only omit braces for single-line blocks 2019-11-11 19:25:14 +00:00
parentalControlsManager.js parentalControlsManager: Be less verbose on the logs 2022-02-18 22:05:16 +00:00
permissionStore.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
signals.js Adopt EventEmitter class instead of injecting Signal methods 2022-07-04 18:30:49 -04:00
signalTracker.js signalTracker: Clear all signal trackers on shutdown 2022-11-25 22:09:37 +01:00
smartcardManager.js cleanup: Minimize deep_unpack() usage 2022-08-10 10:29:24 +00:00
systemActions.js js: Get monitor manager from backend 2022-12-16 22:12:59 +01:00
util.js js: Use (dis)connectObject() 2022-03-04 14:14:37 +00:00
weather.js cleanup: Use deepUnpack() intead of deep_unpack() 2022-08-10 10:29:24 +00:00