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:
Florian Müllner
2023-08-07 01:45:22 +02:00
committed by Marge Bot
parent 071f92cfb6
commit 9a3913d4a0
65 changed files with 530 additions and 494 deletions

View File

@ -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);
}