mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
close widget when successfully logged in
This commit is contained in:
parent
ca05176ce5
commit
b98db04a86
1 changed files with 3 additions and 0 deletions
|
|
@ -224,6 +224,8 @@ class CredentialsDialog(QtWidgets.QDialog):
|
|||
self.set_error(
|
||||
"We're unable to sign in to Ftrack with these credentials"
|
||||
)
|
||||
else:
|
||||
self._close_widget()
|
||||
|
||||
def _on_ftrack_login_clicked(self):
|
||||
url = self.check_url(self.ftsite_input.text())
|
||||
|
|
@ -251,6 +253,7 @@ class CredentialsDialog(QtWidgets.QDialog):
|
|||
))
|
||||
else:
|
||||
self.set_is_logged(True)
|
||||
self._close_widget()
|
||||
|
||||
def login_with_credentials(self, username, api_key):
|
||||
verification = credentials.check_credentials(username, api_key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue