[gnome-shell] shellMountOperation: Use wiggle effect to inform about wrong password



commit ddeb2fa05d8f0f5f23ab3ebb7d504909eaa74550
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Tue Jan 21 10:39:33 2020 +0100

    shellMountOperation: Use wiggle effect to inform about wrong password
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/942

 js/ui/shellMountOperation.js | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/js/ui/shellMountOperation.js b/js/ui/shellMountOperation.js
index f5754c6e2e..c6e6def8cf 100644
--- a/js/ui/shellMountOperation.js
+++ b/js/ui/shellMountOperation.js
@@ -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 didn’t work. Please try again.');
         this._errorMessageLabel.opacity = 255;
+
+        Util.wiggle(this._passwordEntry);
     }
 
     _onCancelButton() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]