location: Rename _onoffAction to _onOffAction
It was just a typo that this patch now corrects. https://bugzilla.gnome.org/show_bug.cgi?id=723684
This commit is contained in:
parent
e80c28a530
commit
8057848458
@ -67,7 +67,7 @@ const Indicator = new Lang.Class({
|
|||||||
'/org/freedesktop/GeoClue2/Agent/' + uid);
|
'/org/freedesktop/GeoClue2/Agent/' + uid);
|
||||||
|
|
||||||
this._item.status.text = _("On");
|
this._item.status.text = _("On");
|
||||||
this._onoffAction = this._item.menu.addAction(_("Turn Off"), Lang.bind(this, this._onOnOffAction));
|
this._onOffAction = this._item.menu.addAction(_("Turn Off"), Lang.bind(this, this._onOnOffAction));
|
||||||
|
|
||||||
this._accurateItem = new PopupMenu.PopupMenuItem(_("Accurate (GPS + Network)"), false);
|
this._accurateItem = new PopupMenu.PopupMenuItem(_("Accurate (GPS + Network)"), false);
|
||||||
this._accurateItem.connect('activate', Lang.bind(this, this._onAccurateItemActivated));
|
this._accurateItem.connect('activate', Lang.bind(this, this._onAccurateItemActivated));
|
||||||
@ -236,12 +236,12 @@ const Indicator = new Lang.Class({
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (this._availableAccuracyLevel < AccuracyLevel.EXACT) {
|
if (this._availableAccuracyLevel < AccuracyLevel.EXACT) {
|
||||||
this._onoffAction.actor.show();
|
this._onOffAction.actor.show();
|
||||||
this._accurateItem.actor.hide();
|
this._accurateItem.actor.hide();
|
||||||
this._powerSavingItem.actor.hide();
|
this._powerSavingItem.actor.hide();
|
||||||
this._offItem.actor.hide();
|
this._offItem.actor.hide();
|
||||||
} else {
|
} else {
|
||||||
this._onoffAction.actor.hide();
|
this._onOffAction.actor.hide();
|
||||||
this._accurateItem.actor.show();
|
this._accurateItem.actor.show();
|
||||||
this._powerSavingItem.actor.show();
|
this._powerSavingItem.actor.show();
|
||||||
this._offItem.actor.show();
|
this._offItem.actor.show();
|
||||||
|
Loading…
Reference in New Issue
Block a user