Rework startup and Application-Engine relation
- Application and Engine will be started by __init__.run() independently - Exiting app will disconnect clients - Signals like SIGINT (Ctrl-C) are now handled for proper exit
This commit is contained in:
@@ -85,6 +85,13 @@ class ClientManager(QObject):
|
||||
client.logout()
|
||||
|
||||
|
||||
@pyqtSlot()
|
||||
def deleteAll(self) -> None:
|
||||
for user_id in self.clients.copy():
|
||||
self.delete(user_id)
|
||||
print("deleted", user_id, self.clients)
|
||||
|
||||
|
||||
@pyqtProperty(str, constant=True)
|
||||
def defaultDeviceName(self) -> str: # pylint: disable=no-self-use
|
||||
os_ = f" on {platform.system()}".rstrip()
|
||||
|
||||
Reference in New Issue
Block a user