Skip to content

Commit

Permalink
🐛 账号切换 修正在某些情况下也应该尝试正常打开新账号登录窗口
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbadmin committed Aug 19, 2024
1 parent e3cf319 commit 6ebbeb0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public async ValueTask<bool> SwapToAccount(IAccount? account, PlatformAccount pl
}
else
{
await steamService.SetSteamCurrentUserAsync(string.Empty);
await ClearCurrentLoginUser(platform);
foreach (var user in users)
{
user.MostRecent = false;
Expand All @@ -62,7 +62,7 @@ public async ValueTask<bool> SwapToAccount(IAccount? account, PlatformAccount pl
return true;
}

async ValueTask<bool> IPlatformSwitcher.ClearCurrentLoginUser(PlatformAccount platform)
public async ValueTask<bool> ClearCurrentLoginUser(PlatformAccount platform)
{
await steamService.SetSteamCurrentUserAsync(string.Empty);
return true;
Expand All @@ -82,6 +82,7 @@ public bool RunPlatformProcess(PlatformAccount platform, bool isAdmin)

public async ValueTask NewUserLogin(PlatformAccount platform)
{
await ClearCurrentLoginUser(platform);
await SwapToAccount(null, platform);
}

Expand Down

0 comments on commit 6ebbeb0

Please sign in to comment.