Skip to content

Commit

Permalink
Refuse empty username
Browse files Browse the repository at this point in the history
  • Loading branch information
ClumsyLee committed Sep 8, 2015
1 parent 6acf49a commit f97c6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def refresh_status(self):

def refresh_username(self, username):
logging.debug('Refreshing username in the menu')
if username is None:
if not username:
self.username_action.setText('未设置账号')
self.usage_action.setVisible(False)
self.balance_action.setVisible(False)
Expand Down

0 comments on commit f97c6c6

Please sign in to comment.