loginDialog: Improve conflicting session notification message
This makes it less confusing. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3235>
This commit is contained in:
parent
0463511457
commit
b33f82b583
@ -1073,13 +1073,13 @@ export const LoginDialog = GObject.registerClass({
|
|||||||
}, this);
|
}, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
_notifyConflictingSessionDialogClosed(userName) {
|
_notifyConflictingSessionDialogClosed() {
|
||||||
const source = new MessageTray.getSystemSource();
|
const source = new MessageTray.getSystemSource();
|
||||||
|
|
||||||
this._conflictingSessionNotification = new MessageTray.Notification({
|
this._conflictingSessionNotification = new MessageTray.Notification({
|
||||||
source,
|
source,
|
||||||
title: _('Stop conflicting session dialog closed'),
|
title: _('Login Attempt Timed Out'),
|
||||||
body: _('Try to login again to start a session for user %s.').format(userName),
|
body: _('Login took too long, please try again'),
|
||||||
urgency: MessageTray.Urgency.CRITICAL,
|
urgency: MessageTray.Urgency.CRITICAL,
|
||||||
isTransient: true,
|
isTransient: true,
|
||||||
});
|
});
|
||||||
@ -1112,7 +1112,7 @@ export const LoginDialog = GObject.registerClass({
|
|||||||
}, conflictingSessionDialog);
|
}, conflictingSessionDialog);
|
||||||
|
|
||||||
const closeDialogTimeoutId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, _CONFLICTING_SESSION_DIALOG_TIMEOUT, () => {
|
const closeDialogTimeoutId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, _CONFLICTING_SESSION_DIALOG_TIMEOUT, () => {
|
||||||
this._notifyConflictingSessionDialogClosed(this._user.get_user_name());
|
this._notifyConflictingSessionDialogClosed();
|
||||||
conflictingSessionDialog.close();
|
conflictingSessionDialog.close();
|
||||||
this._authPrompt.reset();
|
this._authPrompt.reset();
|
||||||
return GLib.SOURCE_REMOVE;
|
return GLib.SOURCE_REMOVE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user