Skip to content

Commit

Permalink
Fix crash on failed login
Browse files Browse the repository at this point in the history
  • Loading branch information
DJDoubleD committed Apr 15, 2023
1 parent bd05377 commit 11293da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions QobuzDownloaderX/View/LoginForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ private void LoginBG_DoWork(object sender, DoWorkEventArgs e)
System.IO.File.WriteAllText(errorLog, error);
loginButton.Invoke(new Action(() => loginButton.Enabled = true));
altLoginLabel.Invoke(new Action(() => altLoginLabel.Visible = true));
return;
}

if (!QobuzApiServiceManager.GetApiService().IsAppSecretValid())
Expand All @@ -334,6 +335,7 @@ private void LoginBG_DoWork(object sender, DoWorkEventArgs e)
System.IO.File.WriteAllText(errorLog, $"Retrieved app_secret: {QobuzApiServiceManager.GetApiService().AppSecret}\r\n");
loginButton.Invoke(new Action(() => loginButton.Enabled = true));
altLoginLabel.Invoke(new Action(() => altLoginLabel.Visible = true));
return;
}

loginText.Invoke(new Action(() => loginText.Text = "Login Successful! Launching QBDLX..."));
Expand Down

0 comments on commit 11293da

Please sign in to comment.