From 6b5a5d05c17f593e84625a671a559c912b19d706 Mon Sep 17 00:00:00 2001 From: JW-CH <17313367+JW-CH@users.noreply.github.com> Date: Sun, 14 Apr 2024 18:38:35 +0200 Subject: [PATCH] Settings error catching --- ImmichFrame/ViewModels/SettingsViewModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ImmichFrame/ViewModels/SettingsViewModel.cs b/ImmichFrame/ViewModels/SettingsViewModel.cs index 0a7de18..5ea490e 100644 --- a/ImmichFrame/ViewModels/SettingsViewModel.cs +++ b/ImmichFrame/ViewModels/SettingsViewModel.cs @@ -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) { @@ -84,8 +86,6 @@ public void SaveAction() return; } - Settings.Serialize(); - Navigate(new MainViewModel()); } }