From cae80b00bc2db94ea7b974342d71a0edf0074ce5 Mon Sep 17 00:00:00 2001 From: Deltaion Lee <32529306+MCMi460@users.noreply.github.com> Date: Wed, 31 Jan 2024 18:08:36 -0600 Subject: [PATCH] Apply auto-restart on logout --- client/app.py | 2 -- client/cli.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/client/app.py b/client/app.py index 91f2321..7294a0f 100644 --- a/client/app.py +++ b/client/app.py @@ -660,8 +660,6 @@ def updateProfile(self, new): 'user_lang': client.api.user_lang, 'targetID': client.api.targetID, })) - dlg = QMessageBox() - dlg.setWindowTitle('NSO-RPC') # Restart NSO-RPC to apply changes Restart_NSORPC() diff --git a/client/cli.py b/client/cli.py index 8e43ad4..e66dc4d 100644 --- a/client/cli.py +++ b/client/cli.py @@ -162,7 +162,7 @@ def logout(self): os.remove(os.path.join(applicationPath, 'settings.txt')) except: pass - sys.exit() + Restart_NSORPC() def getToken(manual = True, path: str = os.path.join(applicationPath, 'private.txt')):