AYON Change of login should work

Co-authored-by: Libor Batek <112623825+LiborBatek@users.noreply.github.com>
This commit is contained in:
Jakub Trllo 2023-12-06 15:05:10 +01:00 committed by GitHub
parent 8c3a59c08e
commit 0ed8a66fb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -632,6 +632,14 @@ class TrayManager:
self.exit()
elif result.restart or result.token_changed:
# Remove environment variables from current connection
# - keep develop, staging, headless values
for key in {
"AYON_SERVER_URL",
"AYON_API_KEY",
"AYON_BUNDLE_NAME",
}:
os.environ.pop(key, None)
self.restart()
def _on_restart_action(self):