diff --git a/js/ui/components/keyring.js b/js/ui/components/keyring.js index da7eeec95..46c61ace0 100644 --- a/js/ui/components/keyring.js +++ b/js/ui/components/keyring.js @@ -7,8 +7,7 @@ const Dialog = imports.ui.dialog; const ModalDialog = imports.ui.modalDialog; const ShellEntry = imports.ui.shellEntry; const CheckBox = imports.ui.checkBox; - -var WORK_SPINNER_ICON_SIZE = 16; +const Util = imports.misc.util; var KeyringDialog = GObject.registerClass( class KeyringDialog extends ModalDialog.ModalDialog { @@ -70,6 +69,10 @@ class KeyringDialog extends ModalDialog.ModalDialog { this.prompt.connect('notify::warning-visible', () => { warning.opacity = this.prompt.warning_visible ? 255 : 0; }); + this.prompt.connect('notify::warning', () => { + if (this._passwordEntry && warning !== '') + Util.wiggle(this._passwordEntry); + }); warningBox.add_child(warning); passwordBox.add_child(warningBox);