Revert "unlockDialog: Remove 'Login as another user' Label"
This reverts commit c6a79fafc
. The back button doesn't really work
as a replacement for going back to the login screen.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1006
This commit is contained in:

committed by
Florian Müllner

parent
ead73e5195
commit
06565542e7
@ -1,7 +1,7 @@
|
||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||
/* exported AuthPrompt */
|
||||
|
||||
const { Clutter, Gdm, Gio, GObject, Pango, Shell, St } = imports.gi;
|
||||
const { Clutter, GObject, Pango, Shell, St } = imports.gi;
|
||||
|
||||
const Animation = imports.ui.animation;
|
||||
const Batch = imports.gdm.batch;
|
||||
@ -129,7 +129,7 @@ var AuthPrompt = GObject.registerClass({
|
||||
y_align: Clutter.ActorAlign.CENTER,
|
||||
child: new St.Icon({ icon_name: 'go-previous-symbolic' }),
|
||||
});
|
||||
this.cancelButton.connect('clicked', () => this._onCancelButtonClicked());
|
||||
this.cancelButton.connect('clicked', () => this.cancel());
|
||||
this._mainBox.add_child(this.cancelButton);
|
||||
|
||||
let entryParams = {
|
||||
@ -382,15 +382,6 @@ var AuthPrompt = GObject.registerClass({
|
||||
});
|
||||
}
|
||||
|
||||
_onCancelButtonClicked() {
|
||||
if (this._mode == AuthPromptMode.UNLOCK_ONLY) {
|
||||
let screenSaverSettings = new Gio.Settings({ schema_id: 'org.gnome.desktop.screensaver' });
|
||||
if (screenSaverSettings.get_boolean('user-switch-enabled'))
|
||||
Gdm.goto_login_session_sync(null);
|
||||
}
|
||||
this.cancel();
|
||||
}
|
||||
|
||||
setMessage(message, type) {
|
||||
if (type == GdmUtil.MessageType.ERROR)
|
||||
this._message.add_style_class_name('login-dialog-message-warning');
|
||||
|
Reference in New Issue
Block a user