status/network: Fix a11y names for VPN connection menu items

Because of an omission, the VPN menu items never got its a11y name,
so a screen reader was reporting that item only as a plain item without
any label.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2720>
This commit is contained in:
Lukáš Tyrychtr 2023-03-23 14:59:01 +01:00 committed by Marge Bot
parent 4f913b4ebd
commit 95c0a88fe7

View File

@ -1274,6 +1274,7 @@ const NMVpnConnectionItem = GObject.registerClass({
this._label.x_expand = true;
this.accessible_role = Atk.Role.CHECK_MENU_ITEM;
this._icon.hide();
this.label_actor = this._label;
this._switch = new PopupMenu.Switch(this.is_active);
this.add_child(this._switch);