
Move the signal handlers for changed settings to be connected after the creation of the menu items to make sure a reference to the item is set. While it also worked fine before, this solution certainly looks cleaner. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/512