Lua extensions: clicking dialog button once triggers multiple calls
The issue I see: In my Resume Media extension, I redefine a dialog button based on the dialog mode a user wants. With a single click, the dialog often experiences several entries to a button routine causing incorrect behavior and confusion.
How it affects Resume Media: I use os.time() to limit user clicks to one per second. Even so, if the user clicks at an os.time() time change, a double click effect still occurs occasionally at second boundaries. To stop the double click effect, I would have to limit clicks to one every two seconds, which is unacceptable.
Solution One: Make a millisecond time function available to lua extensions.
Solution Two: Is it possible for the VLC developers to desensitize lua dialog button responses?
Thanks, Rocky