Skip to content

Commit 45a068f

Browse files
committed
Code improvements II
1 parent 4b5eafc commit 45a068f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TableViewColumnHeader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ private void OnWidthChanged(DependencyObject sender, DependencyProperty dp)
7171
/// </summary>
7272
private void OnRightTapped(object sender, RightTappedRoutedEventArgs e)
7373
{
74-
// Check if right-click is enabled via TableView or colmun is currently resizing
74+
// Check if right-click is enabled via TableView or column is currently resizing
7575
if (_tableView?.UseRightClickForColumnFilter != true || IsSizingCursor)
7676
{
7777
return;
7878
}
7979

8080
// Shows the button's flyout if options button is available and either filtering or sorting is enabled
81-
if (_optionsButton is not null && (CanFilter || CanSort))
81+
if (_optionsButton is not null && CanFilter)
8282
{
8383
_optionsButton.Flyout?.ShowAt(_optionsButton);
8484
e.Handled = true;

0 commit comments

Comments
 (0)