diff --git a/Nasal/canvas/tooltip.nas b/Nasal/canvas/tooltip.nas index dc3735481..b63de2ab4 100644 --- a/Nasal/canvas/tooltip.nas +++ b/Nasal/canvas/tooltip.nas @@ -422,3 +422,8 @@ addcommand("set-tooltip", setTooltip); addcommand("tooltip-timeout", showTooltip); addcommand("show-message", showMessage); addcommand("clear-message", clearMessage); + +# confirm the commands are registered: we use this to +# avoid sending commands before Nasal is inited, and hence +# producing errors +setprop("/sim/mouse/tooltip-commands-registered", 1);