Skip to content

Commit

Permalink
Fixed an issue with visible item locations being clearable when a ite…
Browse files Browse the repository at this point in the history
…m is not marked on them.
  • Loading branch information
Tripp committed Nov 25, 2020
1 parent a45d0de commit 530acf1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OpenTracker.Models/Sections/VisibleItemSection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ private void UpdateAccessible()
/// </returns>
public bool CanBeCleared(bool force)
{
return IsAvailable() && (force || Accessibility > AccessibilityLevel.Inspect);
return IsAvailable() && (force || Accessibility > AccessibilityLevel.Inspect
|| (Accessibility == AccessibilityLevel.Inspect &&
Marking.Mark == MarkType.Unknown));
}

/// <summary>
Expand Down

0 comments on commit 530acf1

Please sign in to comment.