Skip to content

Commit

Permalink
NR Update button should be enabled all the time
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 committed Dec 3, 2023
1 parent 2f25a1e commit 312c7b7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public Feed? Feed
}
}

public bool IsSameFeed => OldFeed == Feed;

public string? LoadErrorMessage
{
get => loadErrorMessage;
Expand All @@ -78,7 +76,6 @@ protected override void OnPropertyChanged(PropertyChangedEventArgs e)
{
base.OnPropertyChanged(e);
if (e.PropertyName is nameof(Feed)) useTitleAsNameCommand.RaiseCanExecuteChanged();
if (e.PropertyName is nameof(OldFeed) or nameof(Feed)) RaisePropertyChanged(nameof(IsSameFeed));
}

private void FeedPropertyChanged(object? sender, PropertyChangedEventArgs e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@
<DataTrigger TargetType="Button" Binding="{Binding IsEditMode}" Value="True">
<Setter Property="Text" Value="{x:Static p:Resources.Update}"/>
</DataTrigger>
<DataTrigger TargetType="Button" Binding="{Binding IsSameFeed}" Value="True">
<Setter Property="IsEnabled" Value="False"/>
</DataTrigger>
</Button.Triggers>
</Button>

Expand Down

0 comments on commit 312c7b7

Please sign in to comment.