cleanup: Use consistent 4-space indent
This is another bit where we've made good progress, and just need a final push to complete the transition. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2866>
This commit is contained in:

committed by
Marge Bot

parent
071f92cfb6
commit
9a3913d4a0
@ -22,9 +22,9 @@ class AutomountManager {
|
||||
this._activeOperations = new Map();
|
||||
this._session = new GnomeSession.SessionManager();
|
||||
this._session.connectSignal('InhibitorAdded',
|
||||
this._InhibitorsChanged.bind(this));
|
||||
this._InhibitorsChanged.bind(this));
|
||||
this._session.connectSignal('InhibitorRemoved',
|
||||
this._InhibitorsChanged.bind(this));
|
||||
this._InhibitorsChanged.bind(this));
|
||||
this._inhibited = false;
|
||||
|
||||
this._volumeMonitor = Gio.VolumeMonitor.get();
|
||||
@ -81,8 +81,8 @@ class AutomountManager {
|
||||
|
||||
let player = global.display.get_sound_player();
|
||||
player.play_from_theme('device-added-media',
|
||||
_('External drive connected'),
|
||||
null);
|
||||
_('External drive connected'),
|
||||
null);
|
||||
}
|
||||
|
||||
_onDriveDisconnected() {
|
||||
@ -93,8 +93,8 @@ class AutomountManager {
|
||||
|
||||
let player = global.display.get_sound_player();
|
||||
player.play_from_theme('device-removed-media',
|
||||
_('External drive disconnected'),
|
||||
null);
|
||||
_('External drive disconnected'),
|
||||
null);
|
||||
}
|
||||
|
||||
_onDriveEjectButton(monitor, drive) {
|
||||
@ -180,7 +180,7 @@ class AutomountManager {
|
||||
this._activeOperations.set(volume, operation);
|
||||
|
||||
volume.mount(0, mountOp, null,
|
||||
this._onVolumeMounted.bind(this));
|
||||
this._onVolumeMounted.bind(this));
|
||||
}
|
||||
|
||||
_onVolumeMounted(volume, res) {
|
||||
@ -226,8 +226,7 @@ class AutomountManager {
|
||||
let prevOperation = this._activeOperations.get(volume);
|
||||
const existingDialog = prevOperation?.borrowDialog();
|
||||
let operation =
|
||||
new ShellMountOperation.ShellMountOperation(volume,
|
||||
{existingDialog});
|
||||
new ShellMountOperation.ShellMountOperation(volume, {existingDialog});
|
||||
this._mountVolume(volume, operation);
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ function startAppForMount(app, mount) {
|
||||
|
||||
try {
|
||||
retval = app.launch(files,
|
||||
global.create_app_launch_context(0, -1));
|
||||
global.create_app_launch_context(0, -1));
|
||||
} catch (e) {
|
||||
log(`Unable to launch the app ${app.get_name()}: ${e}`);
|
||||
}
|
||||
@ -81,8 +81,8 @@ const HotplugSnifferIface = loadInterfaceXML('org.gnome.Shell.HotplugSniffer');
|
||||
const HotplugSnifferProxy = Gio.DBusProxy.makeProxyWrapper(HotplugSnifferIface);
|
||||
function HotplugSniffer() {
|
||||
return new HotplugSnifferProxy(Gio.DBus.session,
|
||||
'org.gnome.Shell.HotplugSniffer',
|
||||
'/org/gnome/Shell/HotplugSniffer');
|
||||
'org.gnome.Shell.HotplugSniffer',
|
||||
'/org/gnome/Shell/HotplugSniffer');
|
||||
}
|
||||
|
||||
class ContentTypeDiscoverer {
|
||||
|
@ -216,7 +216,7 @@ class KeyringPrompter extends Gcr.SystemPrompter {
|
||||
if (!this._registered) {
|
||||
this.register(Gio.DBus.session);
|
||||
this._dbusId = Gio.DBus.session.own_name('org.gnome.keyring.SystemPrompter',
|
||||
Gio.BusNameOwnerFlags.ALLOW_REPLACEMENT, null, null);
|
||||
Gio.BusNameOwnerFlags.ALLOW_REPLACEMENT, null, null);
|
||||
this._registered = true;
|
||||
}
|
||||
this._enabled = true;
|
||||
|
@ -480,7 +480,7 @@ class VPNRequestHandler extends Signals.EventEmitter {
|
||||
this._readStdoutOldStyle();
|
||||
|
||||
this._childWatch = GLib.child_watch_add(GLib.PRIORITY_DEFAULT, pid,
|
||||
this._vpnChildFinished.bind(this));
|
||||
this._vpnChildFinished.bind(this));
|
||||
|
||||
this._writeConnection();
|
||||
} catch (e) {
|
||||
|
@ -425,9 +425,10 @@ class ChatSource extends MessageTray.Source {
|
||||
_updateAvatarIcon() {
|
||||
this.iconUpdated();
|
||||
if (this._notification) {
|
||||
this._notification.update(this._notification.title,
|
||||
this._notification.bannerBodyText,
|
||||
{gicon: this.getIcon()});
|
||||
this._notification.update(
|
||||
this._notification.title,
|
||||
this._notification.bannerBodyText,
|
||||
{gicon: this.getIcon()});
|
||||
}
|
||||
}
|
||||
|
||||
@ -631,9 +632,10 @@ class ChatSource extends MessageTray.Source {
|
||||
|
||||
_presenceChanged(_contact, _presence, _status, _message) {
|
||||
if (this._notification) {
|
||||
this._notification.update(this._notification.title,
|
||||
this._notification.bannerBodyText,
|
||||
{secondaryGIcon: this.getSecondaryIcon()});
|
||||
this._notification.update(
|
||||
this._notification.title,
|
||||
this._notification.bannerBodyText,
|
||||
{secondaryGIcon: this.getSecondaryIcon()});
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user