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;
|
return tankchange;
|
||||||
}
|
}
|
||||||
# Run it at startup to make sure the tank settings are correct
|
# Run it at startup and on reset to make sure the tank settings are correct
|
||||||
_setlistener("/sim/signals/fdm-initialized", func {
|
_setlistener("/sim/signals/fdm-initialized", func { settimer(setWeightOpts, 0) });
|
||||||
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
|
# Called from the F&W dialog when the user selects a weight option
|
||||||
|
|
Loading…
Add table
Reference in a new issue