Skip to content

Commit

Permalink
Reset tooltip timer if not showing tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
metalgearsloth committed Oct 24, 2024
1 parent 839f6bd commit 674271e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Robust.Client/UserInterface/UserInterfaceManager.Input.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,10 @@ private static void _doGuiInput(

private void _clearTooltip()
{
if (!_showingTooltip) return;
_resetTooltipTimer();

if (!_showingTooltip)
return;

if (_suppliedTooltip != null)
{
Expand All @@ -321,7 +324,6 @@ private void _clearTooltip()
}

CurrentlyHovered?.PerformHideTooltip();
_resetTooltipTimer();
_showingTooltip = false;
}

Expand Down

0 comments on commit 674271e

Please sign in to comment.