From cb25691c033c940948303230ee447d8798fc3426 Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 31 Jan 2007 21:37:14 +0000 Subject: [PATCH] call setWeightOpts on reset, too --- Nasal/gui.nas | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Nasal/gui.nas b/Nasal/gui.nas index 8777bdf17..451831490 100644 --- a/Nasal/gui.nas +++ b/Nasal/gui.nas @@ -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