From 08c30bbab52a2cf31c6807033a3e5504c53baad0 Mon Sep 17 00:00:00 2001 From: Paul De Smul Date: Sun, 23 Nov 2025 17:29:41 +0100 Subject: [PATCH 1/6] Fix crash on move codex when thumbnail doesn't exist --- src/ViewModels/CodexViewModel.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ViewModels/CodexViewModel.cs b/src/ViewModels/CodexViewModel.cs index b16a18cd..1e7400b1 100644 --- a/src/ViewModels/CodexViewModel.cs +++ b/src/ViewModels/CodexViewModel.cs @@ -293,9 +293,14 @@ public static void MoveToCollection(CodexCollection targetCollection, List Date: Sun, 23 Nov 2025 17:39:33 +0100 Subject: [PATCH 2/6] Set CETCompat to false to try and fix crash --- src/COMPASS.csproj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/COMPASS.csproj b/src/COMPASS.csproj index b706944f..928c4133 100644 --- a/src/COMPASS.csproj +++ b/src/COMPASS.csproj @@ -4,6 +4,9 @@ WinExe net9.0-windows true + + false COMPASS COMPASS COMPASS.ico From 017ed805fbb3d40d61341830acc18384b06d9f33 Mon Sep 17 00:00:00 2001 From: Paul De Smul Date: Sun, 23 Nov 2025 18:13:59 +0100 Subject: [PATCH 3/6] Update dependencies --- src/COMPASS.csproj | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/COMPASS.csproj b/src/COMPASS.csproj index 928c4133..8e06e4e4 100644 --- a/src/COMPASS.csproj +++ b/src/COMPASS.csproj @@ -42,24 +42,24 @@ - + - - + + - - + + - + @@ -67,7 +67,7 @@ - + From 40d7ad59ac3b9e2a4c26b77c7ac1eb3959a8d8ad Mon Sep 17 00:00:00 2001 From: Paul De Smul Date: Sun, 23 Nov 2025 18:27:00 +0100 Subject: [PATCH 4/6] Add btn to clear Rating --- src/ViewModels/CodexEditViewModel.cs | 7 +++++++ src/Windows/CodexEditWindow.xaml | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/ViewModels/CodexEditViewModel.cs b/src/ViewModels/CodexEditViewModel.cs index 30faeb2a..a332b969 100644 --- a/src/ViewModels/CodexEditViewModel.cs +++ b/src/ViewModels/CodexEditViewModel.cs @@ -68,6 +68,13 @@ public bool ShowLoading #region Methods and Commands + private RelayCommand? _clearRatingCommand; + public RelayCommand ClearRatingCommand => _clearRatingCommand ??= new(ClearRating); + private void ClearRating() + { + _tempCodex.Rating = 0; + } + private RelayCommand? _browsePathCommand; public RelayCommand BrowsePathCommand => _browsePathCommand ??= new(BrowsePath); private void BrowsePath() diff --git a/src/Windows/CodexEditWindow.xaml b/src/Windows/CodexEditWindow.xaml index 5b3071b9..b4db23c0 100644 --- a/src/Windows/CodexEditWindow.xaml +++ b/src/Windows/CodexEditWindow.xaml @@ -216,7 +216,14 @@ Grid.Column="1" Grid.Row="2" Margin="2,0"/> - + + +