Skip to content

Commit

Permalink
fix: auto login logic & update lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluefissure committed Nov 17, 2023
1 parent dfa3f5a commit a6b5c2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/XIVLauncher.Core/Components/MainPage/MainPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ private async Task<Launcher.LoginResult> TryLoginToGame(string username, string
var autoLogin = string.IsNullOrEmpty(password) && this.loginFrame.IsAutoLogin;
try
{
autoLoginSessionKey = App.Accounts.CurrentAccount?.AutoLoginSessionKey;
if (autoLogin)
{
autoLoginSessionKey = App.Accounts.CurrentAccount?.AutoLoginSessionKey;
}
}
catch (Exception ex)
{
Expand Down

0 comments on commit a6b5c2c

Please sign in to comment.