Make is_connected a property

This is consistent with the rest of is_ properties
This commit is contained in:
Lonami Exo
2022-02-16 11:24:20 +01:00
parent 483e2aadf1
commit 4258ce2bc8
6 changed files with 29 additions and 26 deletions

View File

@@ -228,7 +228,7 @@ class App(tkinter.Tk):
"""
Sends a message. Does nothing if the client is not connected.
"""
if not self.cl.is_connected():
if not self.cl.is_connected:
return
# The user needs to configure a chat where the message should be sent.