darktable-org / lua-scripts

151 stars 110 forks source link

Add check for max api version #416

Closed wpferguson closed 1 year ago

wpferguson commented 1 year ago

Due to the deprecation of API elements, scripts using the view toolbox no longer work. We can keep them around until we come up with another way of implementing the missing functionality, but we need a way to disable them for API versions that they aren't compatible with.

This PR allows setting the last version of the API that the function worked. When new functionality is implemented to replace what's missing, the max API check can be removed and the min API check can be set to the API of the new functionality.