Tooltips: set a flag when registering the commands
This allows the C++ side to avoid invoking the commands prematurely.
This commit is contained in:
parent
b7a6221c63
commit
c6b8869fed
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue