close widget when successfully logged in

This commit is contained in:
iLLiCiTiT 2020-08-26 13:01:03 +02:00
parent ca05176ce5
commit b98db04a86

View file

@ -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)