File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ def ctx_password(self, instance):
117117 icon = 'trash-can-outline' ,
118118 text = 'Delete' ,
119119 on_release = lambda x : [
120- self .del_password (instance .text ),
120+ self .del_password (instance .text , True ),
121121 ctx_dialog .dismiss ()
122122 ]
123123 ),
@@ -227,16 +227,16 @@ def copy_password(self, password=None):
227227 result_dialog .open ()
228228 self .update_passwords_list ()
229229
230- def del_password (self , password = None ):
230+ def del_password (self , password = None , force = False ):
231231 if password is None :
232232 password = self .root .ids .del_password_alias .text .capitalize ()
233233 self .root .ids .del_password_alias .text = ''
234- if len (password ) == 0 :
234+ if not force and len (password ) == 0 :
235235 result_dialog = SimpleDialog (
236236 title = 'Whoops!' ,
237237 text = 'Please provide password alias at first.'
238238 ).alert ()
239- elif len (password ) < 3 :
239+ elif not force and len (password ) < 3 :
240240 result_dialog = SimpleDialog (
241241 title = 'Whoops!' ,
242242 text = 'Password alias has to be at least 3 characters long.'
You can’t perform that action at this time.
0 commit comments