aboutsummaryrefslogtreecommitdiff
path: root/h-client/hclient.py
diff options
context:
space:
mode:
Diffstat (limited to 'h-client/hclient.py')
-rw-r--r--h-client/hclient.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/h-client/hclient.py b/h-client/hclient.py
index f042076..d6141c6 100644
--- a/h-client/hclient.py
+++ b/h-client/hclient.py
@@ -218,7 +218,7 @@ class hclient:
def submit(self,widget):
self.applyChanges(None)
- if self.client.isLogged():
+ if self.client.isLogged() == True:
result = self.client.submit(self.currentDeviceCode)
self.printErrors()
else:
@@ -432,11 +432,11 @@ class hclient:
#check if the user is logged
#hide or show the login/logout buttons
def updateStatus(self):
- if self.client.isLogged():
+ if self.client.isLogged() == True:
self.loginButton.hide()
self.logoutButton.show()
info = self.client.getUserInfo()
- if info != False:
+ if info == True:
self.statusLabel.set_markup("<i>hello</i> <b>"+info['username']+"</b>, <i>you are logged in</i>")
if self.currentDeviceCode != None: