mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +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(
|
self.set_error(
|
||||||
"We're unable to sign in to Ftrack with these credentials"
|
"We're unable to sign in to Ftrack with these credentials"
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
self._close_widget()
|
||||||
|
|
||||||
def _on_ftrack_login_clicked(self):
|
def _on_ftrack_login_clicked(self):
|
||||||
url = self.check_url(self.ftsite_input.text())
|
url = self.check_url(self.ftsite_input.text())
|
||||||
|
|
@ -251,6 +253,7 @@ class CredentialsDialog(QtWidgets.QDialog):
|
||||||
))
|
))
|
||||||
else:
|
else:
|
||||||
self.set_is_logged(True)
|
self.set_is_logged(True)
|
||||||
|
self._close_widget()
|
||||||
|
|
||||||
def login_with_credentials(self, username, api_key):
|
def login_with_credentials(self, username, api_key):
|
||||||
verification = credentials.check_credentials(username, api_key)
|
verification = credentials.check_credentials(username, api_key)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue