1
0
Fork 0

Tooltips: set a flag when registering the commands

This allows the C++ side to avoid invoking the commands prematurely.
This commit is contained in:
James Turner 2021-01-08 19:35:00 +00:00
parent b7a6221c63
commit c6b8869fed

View file

@ -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);