2016-08-26, 18:45
Hello,
the python script I am trying to write takes a fair bit of time to finish. While the script is running I don't want the user to be able to start the script again because the DialogProgressBG acts weird and it wouldn't make any sense to run twice.
I thought about some lock property in the settings which will be set on start but this wouldn't work in cases where the script or even Kodi itself crashes.
Can you tell me the proper way to solve this? Is there any way I can modify the addon.xml or something so Kodi won't allow it?
the python script I am trying to write takes a fair bit of time to finish. While the script is running I don't want the user to be able to start the script again because the DialogProgressBG acts weird and it wouldn't make any sense to run twice.
I thought about some lock property in the settings which will be set on start but this wouldn't work in cases where the script or even Kodi itself crashes.
Can you tell me the proper way to solve this? Is there any way I can modify the addon.xml or something so Kodi won't allow it?