shellMountOperation: Use wiggle effect to inform about wrong password

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/942
This commit is contained in:
Jonas Dreßler 2020-01-21 10:39:33 +01:00 committed by Florian Müllner
parent 7a1f4f9af3
commit ddeb2fa05d

View File

@ -13,6 +13,7 @@ const Params = imports.misc.params;
const ShellEntry = imports.ui.shellEntry;
const { loadInterfaceXML } = imports.misc.fileUtils;
const Util = imports.misc.util;
var LIST_ITEM_ICON_SIZE = 48;
var WORK_SPINNER_ICON_SIZE = 16;
@ -400,6 +401,8 @@ var ShellMountPasswordDialog = GObject.registerClass({
this._passwordEntry.set_text('');
this._errorMessageLabel.text = _('Sorry, that didnt work. Please try again.');
this._errorMessageLabel.opacity = 255;
Util.wiggle(this._passwordEntry);
}
_onCancelButton() {