From ee379d6d917c8beebac69aef6928311f69429c64 Mon Sep 17 00:00:00 2001 From: haven1433 Date: Wed, 23 Nov 2022 11:13:54 -0600 Subject: [PATCH] add 'palette selection' text for radio buttons also fix a bug where `HasMultiplePalettes` didn't notify when changing between tables --- src/HexManiac.Core/ViewModels/Tools/SpriteElementViewModel.cs | 4 +--- src/HexManiac.WPF/Controls/TabView.xaml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/HexManiac.Core/ViewModels/Tools/SpriteElementViewModel.cs b/src/HexManiac.Core/ViewModels/Tools/SpriteElementViewModel.cs index 7a228fff..0c2cbdd6 100644 --- a/src/HexManiac.Core/ViewModels/Tools/SpriteElementViewModel.cs +++ b/src/HexManiac.Core/ViewModels/Tools/SpriteElementViewModel.cs @@ -223,9 +223,7 @@ namespace HavenSoft.HexManiac.Core.ViewModels.Tools { UpdateAvailablePalettes(that.Start); Start = other.Start; Pages = that.Pages; - NotifyPropertyChanged(nameof(CanExportMany)); - NotifyPropertyChanged(nameof(CanExportAll)); - NotifyPropertyChanged(nameof(CanExportManyOrAll)); + NotifyPropertiesChanged(nameof(CanExportMany), nameof(CanExportAll), nameof(CanExportManyOrAll), nameof(HasMultiplePalettes)); importImage.RaiseCanExecuteChanged(); exportImage.RaiseCanExecuteChanged(); exportImages.RaiseCanExecuteChanged(); diff --git a/src/HexManiac.WPF/Controls/TabView.xaml b/src/HexManiac.WPF/Controls/TabView.xaml index 644cdd21..6458a3b8 100644 --- a/src/HexManiac.WPF/Controls/TabView.xaml +++ b/src/HexManiac.WPF/Controls/TabView.xaml @@ -500,6 +500,7 @@ +