rfkill: fix turning off airplane mode from the menu
The menu does not have a proxy anymore, it needs to go through the manager. https://bugzilla.gnome.org/show_bug.cgi?id=728512
This commit is contained in:
parent
329028d3b9
commit
2f720e22fc
@ -83,7 +83,7 @@ const Indicator = new Lang.Class({
|
|||||||
this._item.icon.icon_name = 'airplane-mode-symbolic';
|
this._item.icon.icon_name = 'airplane-mode-symbolic';
|
||||||
this._item.status.text = _("On");
|
this._item.status.text = _("On");
|
||||||
this._offItem = this._item.menu.addAction(_("Turn Off"), Lang.bind(this, function() {
|
this._offItem = this._item.menu.addAction(_("Turn Off"), Lang.bind(this, function() {
|
||||||
this._proxy.AirplaneMode = false;
|
this._manager.airplaneMode = false;
|
||||||
}));
|
}));
|
||||||
this._item.menu.addSettingsAction(_("Network Settings"), 'gnome-network-panel.desktop');
|
this._item.menu.addSettingsAction(_("Network Settings"), 'gnome-network-panel.desktop');
|
||||||
this.menu.addMenuItem(this._item);
|
this.menu.addMenuItem(this._item);
|
||||||
|
Loading…
Reference in New Issue
Block a user