Yes, That what it does but I want to update all properties at once and then call some function to inform main thread that settings are changed. I can not put this code at the end of onOptionChanged becouse it'll be called several times rather then 1 time after option is changed.
On Oct 29, 6:07 am, Teo <[EMAIL PROTECTED]> wrote: > Hi, > i assume it fires onoptionchanged() for every change that is made, so what > you could use to differentiate among these calls is event.propertyName > > You could try an alert with this property in your function and see if it > really returns the name of the options you change. > > Thanks, > Teo > > > > On Tue, Oct 28, 2008 at 5:42 PM, GSA <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I might expect it's by design but what if I want to modify my > > currently running script after options are changed, I can not just put > > my method at the end of onoptionchanged() since it'll be executed > > several times if I modify several values at the same time. > > What I have is option box with several controls which I update each > > time user presses "ok" button (even if values were not changed), then > > in onoptionchanged() event I reset currently running script with new > > values. It works fine but problem is that onoptionchanged() is called > > several times for each values, creating separate thread I would assume > > for my function. > > How do I deal with it? > > > Thanks, > > G > > -- > Teo (a.k.a. Teominator a.k.a. Teodor Filimon) > sitewww.teodorfilimon.com| blogwww.teodorfilimon.blogspot.com > GMT +2 (or PDT +10) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Desktop Developer Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Desktop-Developer?hl=en -~----------~----~----~----~------~----~------~--~---
