From 95e7581a5bd498a7b4231378a10c9e6ed9536941 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 15 Jul 2015 19:12:19 +0100 Subject: [PATCH] Fixed Delete Theme Component button being enabled for non-master themes --- Filtration/ViewModels/MainWindowViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Filtration/ViewModels/MainWindowViewModel.cs b/Filtration/ViewModels/MainWindowViewModel.cs index 0b5e299..dde7dc0 100644 --- a/Filtration/ViewModels/MainWindowViewModel.cs +++ b/Filtration/ViewModels/MainWindowViewModel.cs @@ -110,7 +110,7 @@ namespace Filtration.ViewModels AddBorderColorThemeComponentCommand = new RelayCommand(OnAddBorderColorThemeComponentCommand, () => ActiveDocumentIsTheme && ActiveThemeIsEditable); DeleteThemeComponentCommand = new RelayCommand(OnDeleteThemeComponentCommand, () => - ActiveDocumentIsTheme && ActiveDocumentIsTheme && + ActiveDocumentIsTheme && ActiveThemeIsEditable && _avalonDockWorkspaceViewModel.ActiveThemeViewModel.SelectedThemeComponent != null); ExpandAllBlocksCommand = new RelayCommand(OnExpandAllBlocksCommand, () => ActiveDocumentIsScript);