diff --git a/SightKeeper.Avalonia/ViewModels/Tabs/Profiles/Editor/AbstractProfileEditorVIewModel.cs b/SightKeeper.Avalonia/ViewModels/Tabs/Profiles/Editor/AbstractProfileEditorVIewModel.cs index 2175f926..4dd1c004 100644 --- a/SightKeeper.Avalonia/ViewModels/Tabs/Profiles/Editor/AbstractProfileEditorVIewModel.cs +++ b/SightKeeper.Avalonia/ViewModels/Tabs/Profiles/Editor/AbstractProfileEditorVIewModel.cs @@ -196,7 +196,7 @@ private async Task Apply() ICommand ProfileEditorViewModel.DeleteCommand => DeleteCommand; - [RelayCommand] + [RelayCommand(CanExecute = nameof(CanDelete))] private void Delete() { Return(ProfileEditorResult.Delete); diff --git a/SightKeeper.Avalonia/Views/Profiles/ProfileEditor.axaml b/SightKeeper.Avalonia/Views/Profiles/ProfileEditor.axaml index d817fd81..377fd9e3 100644 --- a/SightKeeper.Avalonia/Views/Profiles/ProfileEditor.axaml +++ b/SightKeeper.Avalonia/Views/Profiles/ProfileEditor.axaml @@ -129,7 +129,7 @@