From fc0598e2fbf864bccaadae4cdde2e5a564aee6c2 Mon Sep 17 00:00:00 2001 From: Maddo Date: Mon, 30 Nov 2026 19:18:08 +0100 Subject: [PATCH 1/2] feat: Add EXIF data removal option and update related UI bindings --- CatalogLite/LiteCatalogViewModel.cs | 12 ++++ CatalogLite/MainWindow.axaml | 32 +++++------ CatalogLite/MainWindow.axaml.cs | 54 ------------------ .../Tests/ImageResizingTests.cs | 55 +++++++++++++++++++ MaddoShared/ImageCreatorImageSharp.cs | 5 ++ MaddoShared/PicSettings.cs | 1 + .../AvaloniaViews/GeneralTabView.axaml | 1 + imagecatalog/DataModel.cs | 11 ++++ .../Mappings/DataModelMappingProfile.cs | 1 + imagecatalog/Models/SettingsDto.cs | 4 ++ 10 files changed, 104 insertions(+), 72 deletions(-) diff --git a/CatalogLite/LiteCatalogViewModel.cs b/CatalogLite/LiteCatalogViewModel.cs index 656e4d2..92106aa 100644 --- a/CatalogLite/LiteCatalogViewModel.cs +++ b/CatalogLite/LiteCatalogViewModel.cs @@ -12,6 +12,7 @@ public sealed class LiteCatalogViewModel : ViewModelBase private readonly ILogger _logger; private CatalogLiteConfiguration? _configuration; private CancellationTokenSource? _processingTokenSource; + private string _configurationPath = string.Empty; private string _sourcePath = string.Empty; private string _destinationPath = string.Empty; private string _processingStatus = "Caricamento configurazione incorporata..."; @@ -52,6 +53,16 @@ public sealed class LiteCatalogViewModel : ViewModelBase public AsyncCommand StartProcessingCommand { get; } public AsyncCommand StopProcessingCommand { get; } + public string ConfigurationPath + { + get => _configurationPath; + private set + { + _configurationPath = value; + NotifyPropertyChanged(); + } + } + public string SourcePath { get => _sourcePath; @@ -172,6 +183,7 @@ public sealed class LiteCatalogViewModel : ViewModelBase var configuration = _configurationLoader.LoadEmbedded(_picSettings); _configuration = configuration; + ConfigurationPath = configuration.FilePath; SourcePath = configuration.SourcePath; DestinationPath = configuration.DestinationPath; NotifyPropertyChanged(nameof(HorizontalText)); diff --git a/CatalogLite/MainWindow.axaml b/CatalogLite/MainWindow.axaml index 3067595..2b80313 100644 --- a/CatalogLite/MainWindow.axaml +++ b/CatalogLite/MainWindow.axaml @@ -8,8 +8,16 @@ Height="560" MinWidth="640" MinHeight="500"> - - + + + + + + + - - + - - - - +