Changes the text for the logout button when is needed

This commit is contained in:
2015-03-12 17:55:54 -06:00
parent 4465f6e8aa
commit 26644da7b4
2 changed files with 3 additions and 2 deletions

View File

@@ -153,6 +153,7 @@ class accountPanel(bufferController):
self.buffer.change_login(login=False)
widgetUtils.connect_event(self.buffer.login, widgetUtils.BUTTON_PRESSED, self.logout)
else:
self.buffer.change_login(login=True)
widgetUtils.connect_event(self.buffer.login, widgetUtils.BUTTON_PRESSED, self.login)
def login(self, *args, **kwargs):