call setWeightOpts on reset, too
This commit is contained in:
parent
003ba28784
commit
cb25691c03
1 changed files with 3 additions and 4 deletions
|
@ -456,10 +456,9 @@ var setWeightOpts = func {
|
|||
}
|
||||
return tankchange;
|
||||
}
|
||||
# Run it at startup to make sure the tank settings are correct
|
||||
_setlistener("/sim/signals/fdm-initialized", func {
|
||||
settimer(setWeightOpts, 0);
|
||||
});
|
||||
# Run it at startup and on reset to make sure the tank settings are correct
|
||||
_setlistener("/sim/signals/fdm-initialized", func { settimer(setWeightOpts, 0) });
|
||||
_setlistener("/sim/signals/reset", func { cmdarg().getBoolValue() or setWeightOpts() });
|
||||
|
||||
|
||||
# Called from the F&W dialog when the user selects a weight option
|
||||
|
|
Loading…
Reference in a new issue