mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
unlockDialog: Small cleanup
It's silly to initialize a variable to 0 right before setting it to its actual value. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1352
This commit is contained in:
parent
89574abc83
commit
03bcd4c05b
1 changed files with 0 additions and 2 deletions
|
|
@ -573,11 +573,9 @@ var UnlockDialog = GObject.registerClass({
|
|||
|
||||
this._screenSaverSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.screensaver' });
|
||||
|
||||
this._userSwitchEnabledId = 0;
|
||||
this._userSwitchEnabledId = this._screenSaverSettings.connect('changed::user-switch-enabled',
|
||||
this._updateUserSwitchVisibility.bind(this));
|
||||
|
||||
this._userLoadedId = 0;
|
||||
this._userLoadedId = this._user.connect('notify::is-loaded',
|
||||
this._updateUserSwitchVisibility.bind(this));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue