[gnome-shell/wip/lockdown-show-password] Apply 1 suggestion(s) to 1 file(s)



commit 2f65f3bdbab10649f8cfde2cfd72f8005d9ac081
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Jul 30 13:43:33 2021 +0000

    Apply 1 suggestion(s) to 1 file(s)

 src/st/st-password-entry.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/st/st-password-entry.c b/src/st/st-password-entry.c
index 30a44fa8a1..463e1bb5cf 100644
--- a/src/st/st-password-entry.c
+++ b/src/st/st-password-entry.c
@@ -281,7 +281,8 @@ st_password_entry_set_show_peek_icon (StPasswordEntry *entry,
 
   update_peek_icon (entry);
 
-  g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_SHOW_PEEK_ICON]);
+  if (st_entry_get_show_peek_icon (entry) != value)
+    g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_SHOW_PEEK_ICON]);
 }
 
 /**


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