Skip to content

Commit

Permalink
Settings error catching
Browse files Browse the repository at this point in the history
  • Loading branch information
JW-CH committed Apr 14, 2024
1 parent 792d98a commit 6b5a5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ImmichFrame/ViewModels/SettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public void SaveAction()
{
Settings.People = PeopleList.Select(x => Guid.Parse(x.Value)).ToList();
Settings.Albums = AlbumList.Select(x => Guid.Parse(x.Value)).ToList();

Settings.Serialize();
}
catch (Exception ex)
{
Expand All @@ -84,8 +86,6 @@ public void SaveAction()
return;
}

Settings.Serialize();

Navigate(new MainViewModel());
}
}
Expand Down

0 comments on commit 6b5a5d0

Please sign in to comment.