Skip to content

Commit

Permalink
Merge pull request #11 from vitaliishchudlo/development
Browse files Browse the repository at this point in the history
Fixed entry to the program after registration
  • Loading branch information
vitaliishchudlo authored Apr 25, 2022
2 parents aa315b5 + 9cb3eb5 commit df95d24
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ui/forms/auth_win.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def sign_up(self):
self.browser.save_cookies()
self.account_name = self.browser.get_account_name()
self.browser.quit()
self.return_auth_window('Successfully authorized')
self.return_auth_window('Successfully authorized', browser_closed=True)
return True

def sign_in(self, account_name):
Expand All @@ -149,7 +149,7 @@ def sign_in(self, account_name):
self.browser.quit()
return True

def return_auth_window(self, error_message=None):
def return_auth_window(self, error_message=None, browser_closed=True):
if error_message:
try:
self.parent_win.label_error.setMinimumSize(
Expand All @@ -161,4 +161,5 @@ def return_auth_window(self, error_message=None):
self.parent_win.setDisabled(False)
except Exception:
return
self.browser.quit()
if not browser_closed:
self.browser.quit()

0 comments on commit df95d24

Please sign in to comment.