Skip to content

Commit

Permalink
Fixed Validation Tooltip that never shows up.
Browse files Browse the repository at this point in the history
I was having an issue where the canShow variable always ends up false.
This change should fix the problem and not interfere in the current logical flow.
  • Loading branch information
luisfb committed May 21, 2020
1 parent b9ee66d commit 7bce0e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/MahApps.Metro/Controls/CustomValidationPopup.cs
Expand Up @@ -153,7 +153,6 @@ private void CustomValidationPopup_Loaded(object sender, RoutedEventArgs e)
this.metroContentControl = adornedElement.TryFindParent<MetroContentControl>();
if (this.metroContentControl != null)
{
canShow = !this.metroContentControl.TransitionsEnabled;
this.metroContentControl.TransitionStarted += this.OnTransitionStarted;
this.metroContentControl.TransitionCompleted += this.OnTransitionCompleted;
}
Expand Down Expand Up @@ -373,7 +372,7 @@ private void RefreshPosition()

private void SetTopmostState(bool isTop)
{
// Don’t apply state if it’s the same as incoming state
// Don’t apply state if it’s the same as incoming state
if (this.appliedTopMost.HasValue && this.appliedTopMost == isTop)
{
return;
Expand Down Expand Up @@ -421,4 +420,4 @@ private void SetTopmostState(bool isTop)
#pragma warning restore 618
}
}
}
}

0 comments on commit 7bce0e0

Please sign in to comment.