js: Fix linting errors from line shifts
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2794>
This commit is contained in:
parent
1e9b906cbc
commit
0705c7a4eb
@ -534,7 +534,7 @@ var ShellUserVerifier = class extends Signals.EventEmitter {
|
||||
}
|
||||
|
||||
serviceIsForeground(serviceName) {
|
||||
return serviceName == this._getForegroundService();
|
||||
return serviceName === this._getForegroundService();
|
||||
}
|
||||
|
||||
foregroundServiceDeterminesUsername() {
|
||||
|
@ -8,12 +8,16 @@ const NMA4 = imports.gi.NMA4;
|
||||
|
||||
const { loadInterfaceXML } = imports.misc.fileUtils;
|
||||
|
||||
// _getMobileProvidersDatabase:
|
||||
//
|
||||
// Gets the database of mobile providers, with references between MCCMNC/SID and
|
||||
// operator name
|
||||
//
|
||||
let _mpd;
|
||||
|
||||
/**
|
||||
* _getMobileProvidersDatabase:
|
||||
*
|
||||
* Gets the database of mobile providers, with references between MCCMNC/SID and
|
||||
* operator name
|
||||
*
|
||||
* @returns {NMA4.MobileProvidersDatabase | null}
|
||||
*/
|
||||
function _getMobileProvidersDatabase() {
|
||||
if (_mpd == null) {
|
||||
try {
|
||||
|
@ -58,7 +58,7 @@ class AccessDialog extends ModalDialog.ModalDialog {
|
||||
|
||||
let check = new CheckBox.CheckBox();
|
||||
check.getLabelActor().text = name;
|
||||
check.checked = selected == "true";
|
||||
check.checked = selected === 'true';
|
||||
content.add_child(check);
|
||||
|
||||
this._choices.set(id, check);
|
||||
|
@ -104,7 +104,7 @@ var KeybindingEntry = GObject.registerClass({
|
||||
Signals: { 'keybinding-edited': { param_types: [GObject.TYPE_STRING] } },
|
||||
}, class KeybindingEntry extends St.Entry {
|
||||
_init() {
|
||||
super._init({ hint_text: _("New shortcut…"), style: 'width: 10em' });
|
||||
super._init({hint_text: _('New shortcut…'), style: 'width: 10em'});
|
||||
}
|
||||
|
||||
vfunc_captured_event(event) {
|
||||
|
@ -239,7 +239,7 @@ var PopupBaseMenuItem = GObject.registerClass({
|
||||
}
|
||||
|
||||
setOrnament(ornament) {
|
||||
if (ornament == this._ornament)
|
||||
if (ornament === this._ornament)
|
||||
return;
|
||||
|
||||
this._ornament = ornament;
|
||||
|
@ -324,9 +324,10 @@ var SearchController = GObject.registerClass({
|
||||
|
||||
/**
|
||||
* addProvider:
|
||||
* @param {object} provider - a search provider implementation
|
||||
*
|
||||
* Add a search provider to the controller.
|
||||
*
|
||||
* @param {object} provider - a search provider implementation
|
||||
*/
|
||||
addProvider(provider) {
|
||||
this._searchResults._registerProvider(provider);
|
||||
@ -334,9 +335,10 @@ var SearchController = GObject.registerClass({
|
||||
|
||||
/**
|
||||
* removeProvider:
|
||||
* @param {object} provider - a search provider implementation
|
||||
*
|
||||
* Remove a search provider from the controller.
|
||||
*
|
||||
* @param {object} provider - a search provider implementation
|
||||
*/
|
||||
removeProvider(provider) {
|
||||
this._searchResults._unregisterProvider(provider);
|
||||
|
@ -289,14 +289,14 @@ var ShellMountPasswordDialog = GObject.registerClass({
|
||||
let curGridRow = 0;
|
||||
|
||||
if (flags & Gio.AskPasswordFlags.TCRYPT) {
|
||||
this._hiddenVolume = new CheckBox.CheckBox(_("Hidden Volume"));
|
||||
this._hiddenVolume = new CheckBox.CheckBox(_('Hidden Volume'));
|
||||
content.add_child(this._hiddenVolume);
|
||||
|
||||
this._systemVolume = new CheckBox.CheckBox(_("Windows System Volume"));
|
||||
this._systemVolume = new CheckBox.CheckBox(_('Windows System Volume'));
|
||||
content.add_child(this._systemVolume);
|
||||
|
||||
this._keyfilesCheckbox = new CheckBox.CheckBox(_("Uses Keyfiles"));
|
||||
this._keyfilesCheckbox.connect("clicked", this._onKeyfilesCheckboxClicked.bind(this));
|
||||
this._keyfilesCheckbox = new CheckBox.CheckBox(_('Uses Keyfiles'));
|
||||
this._keyfilesCheckbox.connect('clicked', this._onKeyfilesCheckboxClicked.bind(this));
|
||||
content.add_child(this._keyfilesCheckbox);
|
||||
|
||||
this._keyfilesLabel = new St.Label({visible: false});
|
||||
@ -374,7 +374,7 @@ var ShellMountPasswordDialog = GObject.registerClass({
|
||||
content.add_child(passwordGrid);
|
||||
|
||||
if (flags & Gio.AskPasswordFlags.SAVING_SUPPORTED) {
|
||||
this._rememberChoice = new CheckBox.CheckBox(_("Remember Password"));
|
||||
this._rememberChoice = new CheckBox.CheckBox(_('Remember Password'));
|
||||
this._rememberChoice.checked =
|
||||
global.settings.get_boolean(REMEMBER_MOUNT_PASSWORD_KEY);
|
||||
content.add_child(this._rememberChoice);
|
||||
@ -385,17 +385,17 @@ var ShellMountPasswordDialog = GObject.registerClass({
|
||||
this.contentLayout.add_child(content);
|
||||
|
||||
this._defaultButtons = [{
|
||||
label: _("Cancel"),
|
||||
label: _('Cancel'),
|
||||
action: this._onCancelButton.bind(this),
|
||||
key: Clutter.KEY_Escape,
|
||||
}, {
|
||||
label: _("Unlock"),
|
||||
label: _('Unlock'),
|
||||
action: this._onUnlockButton.bind(this),
|
||||
default: true,
|
||||
}];
|
||||
|
||||
this._usesKeyfilesButtons = [{
|
||||
label: _("Cancel"),
|
||||
label: _('Cancel'),
|
||||
action: this._onCancelButton.bind(this),
|
||||
key: Clutter.KEY_Escape,
|
||||
}];
|
||||
|
@ -74,7 +74,7 @@ class ATIndicator extends PanelMenu.Button {
|
||||
let bounceKeys = this._buildItem(_("Bounce Keys"), A11Y_KEYBOARD_SCHEMA, KEY_BOUNCE_KEYS_ENABLED);
|
||||
this.menu.addMenuItem(bounceKeys);
|
||||
|
||||
let mouseKeys = this._buildItem(_("Mouse Keys"), A11Y_KEYBOARD_SCHEMA, KEY_MOUSE_KEYS_ENABLED);
|
||||
let mouseKeys = this._buildItem(_('Mouse Keys'), A11Y_KEYBOARD_SCHEMA, KEY_MOUSE_KEYS_ENABLED);
|
||||
this.menu.addMenuItem(mouseKeys);
|
||||
|
||||
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
|
||||
|
@ -413,7 +413,7 @@ var InputSourceManager = class extends Signals.EventEmitter {
|
||||
// effect without considerable work to consolidate the usage
|
||||
// of pushModal/popModal and grabHelper. See
|
||||
// https://bugzilla.gnome.org/show_bug.cgi?id=695143 .
|
||||
if (Main.actionMode == Shell.ActionMode.POPUP) {
|
||||
if (Main.actionMode === Shell.ActionMode.POPUP) {
|
||||
this._modifiersSwitcher();
|
||||
return;
|
||||
}
|
||||
|
@ -329,7 +329,7 @@ var WorkspaceTracker = class {
|
||||
_windowEnteredMonitor(metaDisplay, monitorIndex, _metaWin) {
|
||||
// If the window entered the primary monitor, that
|
||||
// might make that workspace non-empty
|
||||
if (monitorIndex == Main.layoutManager.primaryIndex)
|
||||
if (monitorIndex === Main.layoutManager.primaryIndex)
|
||||
this._queueCheckWorkspaces();
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ var WindowMenu = class extends PopupMenu.PopupMenu {
|
||||
if (!window.can_maximize())
|
||||
item.setSensitive(false);
|
||||
|
||||
item = this.addAction(_("Move"), event => {
|
||||
item = this.addAction(_('Move'), event => {
|
||||
const device = event.get_device();
|
||||
const seat = device.get_seat();
|
||||
const deviceType = device.get_device_type();
|
||||
@ -77,7 +77,7 @@ var WindowMenu = class extends PopupMenu.PopupMenu {
|
||||
if (!window.allows_move())
|
||||
item.setSensitive(false);
|
||||
|
||||
item = this.addAction(_("Resize"), event => {
|
||||
item = this.addAction(_('Resize'), event => {
|
||||
const device = event.get_device();
|
||||
const seat = device.get_seat();
|
||||
const deviceType = device.get_device_type();
|
||||
|
Loading…
x
Reference in New Issue
Block a user