From 7fe05f6bc9854f46f17c6db42ab9e9c3e9b4810c Mon Sep 17 00:00:00 2001 From: Andrew Zaech Date: Sun, 29 Sep 2024 22:43:15 +0000 Subject: [PATCH] popupSwitchMenuItem: Emit correct switch state with toggled signal The toggled signal was incorrectly emitting the pspec instead of the switch state. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7943 Part-of: --- js/ui/popupMenu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js index cf0406ca7..e0693709a 100644 --- a/js/ui/popupMenu.js +++ b/js/ui/popupMenu.js @@ -607,8 +607,8 @@ export const PopupSwitchMenuItem = GObject.registerClass({ this.checkAccessibleState(); } - _onToggled(sw, state) { - this.emit('toggled', state); + _onToggled() { + this.emit('toggled', this._switch.state); this.checkAccessibleState(); }