Skip to content

Commit

Permalink
Fix Delete profile button visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Neakita committed Sep 29, 2023
1 parent 6e5ab30 commit 2c32159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private async Task Apply()

ICommand ProfileEditorViewModel.DeleteCommand => DeleteCommand;

[RelayCommand]
[RelayCommand(CanExecute = nameof(CanDelete))]
private void Delete()
{
Return(ProfileEditorResult.Delete);
Expand Down
2 changes: 1 addition & 1 deletion SightKeeper.Avalonia/Views/Profiles/ProfileEditor.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
<Button Content="Delete"
Command="{Binding DeleteCommand}"
Foreground="IndianRed"
IsVisible="{Binding $self.IsEnabled}"/>
IsVisible="{Binding $self.IsEffectivelyEnabled}"/>
<Button Content="Apply"
Command="{Binding ApplyCommand}"
Foreground="SeaGreen"/>
Expand Down

0 comments on commit 2c32159

Please sign in to comment.