From 163b8ca6d81e778f68ff64c193ab88209dd05e4b Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 9 Dec 2013 22:02:06 +0000 Subject: [PATCH] Bug 1273, message popups hide timeout ignored. Stop the tooltip code from prematurely hiding message popups. https://code.google.com/p/flightgear-bugs/issues/detail?id=1273 --- Nasal/canvas/tooltip.nas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Nasal/canvas/tooltip.nas b/Nasal/canvas/tooltip.nas index 437ec5928..9319e1265 100644 --- a/Nasal/canvas/tooltip.nas +++ b/Nasal/canvas/tooltip.nas @@ -223,6 +223,11 @@ var Tooltip = { var screenW = getprop('/sim/startup/xsize'); me.setInt("x", (screenW - me._width) * 0.5); me.show(); + # https://code.google.com/p/flightgear-bugs/issues/detail?id=1273 + # when tooltip is shown for some other reason, ensure it stays for + # the full delay (unless replaced). Don't allow the update-hover + # code path to hide() with the shorter delay. + me._hiding = 1; me._hideTimer.restart(timeout or me.DELAY); },