File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,8 @@ def __init__(self):
171
171
172
172
173
173
self .box .show_all ()
174
+ self .password_entry .hide ()
175
+ self .auth_unlock_button .hide ()
174
176
175
177
def initialize_auth_client (self ):
176
178
return self .auth_client .initialize ()
@@ -187,6 +189,9 @@ def on_authentication_failure(self, auth_client):
187
189
self .set_busy (False )
188
190
self .auth_message_label .set_text (_ ("Incorrect password" ))
189
191
192
+ self .password_entry .hide ()
193
+ self .auth_unlock_button .hide ()
194
+
190
195
self .emit ("authenticate-failure" )
191
196
self .emit ("uninhibit-timeout" )
192
197
@@ -211,6 +216,9 @@ def set_busy(self, busy):
211
216
self .update_authinfo_label ()
212
217
213
218
def on_authentication_prompt_changed (self , auth_client , prompt ):
219
+ self .password_entry .show_all ()
220
+ self .auth_unlock_button .show_all ()
221
+
214
222
if "password:" in prompt .lower ():
215
223
prompt = _ ("Please enter your password..." )
216
224
else :
You can’t perform that action at this time.
0 commit comments