Skip to content

Commit

Permalink
Update DefaultLauncherAccountParser.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
laolarou726 committed Jan 26, 2024
1 parent bd1d168 commit 821f6ce
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,13 @@ public bool AddNewAccount(string uuid, AccountModel account, out Guid? id)
public bool RemoveAccount(Guid id)
{
var result = Find(id);

if (!result.HasValue) return false;

var (key, _) = result.Value;

if (string.IsNullOrEmpty(key)) return false;

LauncherAccount?.Accounts?.Remove(key);
Save();

Expand Down

0 comments on commit 821f6ce

Please sign in to comment.