Optimize code
This commit is contained in:
parent
0147e29cef
commit
b5524d1206
1 changed files with 1 additions and 4 deletions
|
@ -139,10 +139,7 @@ class UserSelectWindow(kodigui.BaseWindow):
|
|||
|
||||
def pinEntryClicked(self, controlID):
|
||||
item = self.userList.getSelectedItem()
|
||||
if item.getProperty('editing.pin'):
|
||||
pin = item.getProperty('editing.pin')
|
||||
else:
|
||||
pin = ''
|
||||
pin = item.getProperty('editing.pin') or ''
|
||||
|
||||
if len(pin) > 3:
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue