Skip to main content
Topic: Refreshing scripts when custom variable changes (Read 2384 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Refreshing scripts when custom variable changes

I have created a custom script variable using metadb_display_hook and want to refresh scripts which use that variable.
I discovered dispatch_refresh() method which takes handle list but I don't know exactly what should I insert into that list.
Currently I tried g_get_random_handle() which gets me 'some' handle and all seems to work, but I have strange feeling that this is not the right to do.

Would somebody be so kind and give me some advice what handle should I pass to dispatch_refresh() to refresh the scripts?

Thank you.


Refreshing scripts when custom variable changes

Reply #1
Sorry for the late answer. The metadb_display_hook variable is intended to provide additional information for specific tracks. If your custom field is not associated with specific tracks, but with some global value, then there is no correct way to notify other components about changes.

SimplePortal 1.0.0 RC1 © 2008-2020