Skip to content

Commit

Permalink
Restate accurately what property is checking
Browse files Browse the repository at this point in the history
  • Loading branch information
IvenBach committed Jul 24, 2019
1 parent bba8b61 commit 789cfa4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Rubberduck.Core/UI/UnitTesting/TestExplorerViewModel.cs
Expand Up @@ -129,7 +129,7 @@ public CollectionViewGroup MouseOverGroup

private void RefreshContextMenu()
{
OnPropertyChanged(nameof(IsSelectionATest));
OnPropertyChanged(nameof(IsCursorOverTest));
OnPropertyChanged(nameof(DisplayUnignoreTestLabel));
OnPropertyChanged(nameof(DisplayIgnoreTestLabel));
}
Expand Down Expand Up @@ -237,7 +237,7 @@ public string TestToggleLabel
{
get
{
if (IsSelectionATest)
if (IsCursorOverTest)
{
return string.Empty;
}
Expand All @@ -251,11 +251,11 @@ public string TestToggleLabel
public string UnignoreTestLabel => RubberduckUI.TestExplorer_TestToggle_Unignore;
public string IgnoreTestLabel => RubberduckUI.TestExplorer_TestToggle_Ignore;

public bool IsSelectionATest => SelectedItem != null;
public bool IsCursorOverTest => SelectedItem != null;
private TestMethod _selectedTestMethod => ((TestMethodViewModel)SelectedItem).Method;

public bool DisplayUnignoreTestLabel => IsSelectionATest && _selectedTestMethod.IsIgnored;
public bool DisplayIgnoreTestLabel => IsSelectionATest && !_selectedTestMethod.IsIgnored;
public bool DisplayUnignoreTestLabel => IsCursorOverTest && _selectedTestMethod.IsIgnored;
public bool DisplayIgnoreTestLabel => IsCursorOverTest && !_selectedTestMethod.IsIgnored;

#region Commands

Expand Down

0 comments on commit 789cfa4

Please sign in to comment.