Skip to content

Commit

Permalink
Hint scope of createSettingToggle with _
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Jun 15, 2023
1 parent 39a286e commit 24d472a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extension/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const PrivacyIndicator = GObject.registerClass(
this._locationSettings = new Gio.Settings({schema: 'org.gnome.system.location'});
}

createSettingToggle(popupLabel, iconName) {
_createSettingToggle(popupLabel, iconName) {
//Create sub menu with an icon
let subMenu = new PopupMenu.PopupSubMenuMenuItem(popupLabel, true);
subMenu.icon.icon_name = iconName;
Expand All @@ -71,9 +71,9 @@ const PrivacyIndicator = GObject.registerClass(
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());

let subMenus = [
this.createSettingToggle(_('Location'), 'location-services-active-symbolic'),
this.createSettingToggle(_('Camera'), 'camera-photo-symbolic'),
this.createSettingToggle(_('Microphone'), 'audio-input-microphone-symbolic')
this._createSettingToggle(_('Location'), 'location-services-active-symbolic'),
this._createSettingToggle(_('Camera'), 'camera-photo-symbolic'),
this._createSettingToggle(_('Microphone'), 'audio-input-microphone-symbolic')
];

let gsettingsSchemas = [
Expand Down

0 comments on commit 24d472a

Please sign in to comment.