Hi Csaba,

actually I already use a listener that only fires then the value really 
change. I've looked in Nasal scripting wiki page and globals.nas to be 
sure, and tried the other possible values for the fourth argument of 
setlistener, with no more succes, that's why I looked in FG sources. If 
changes in sources can't be applied or don't have the expected effects 
I've got an other workaround, but it is quite an ugly one.

regards
seb

Csaba Halász wrote :
> On Fri, Feb 20, 2009 at 1:23 AM, Sébastien MARQUE <seb.mar...@free.fr> wrote:
>> Indeed, it seems like the dialog-apply command changes every single
>> property linked to a checkbox causing the listeners set on these
>> properties to be triggered even if the property hadn't be changed by the
>> user. The result is that all instruments or systems which have a
>> listener are triggered, and obviously fail all instruments and systems
>> in my case.
> 
> You can use a listener that only fires when the value really changes.
> See the docs for the setlistener function.
> 

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to