renoise object notfiers are still calling function. but theses functions just don't react to changes when inactive.
It is better to unregister theses functions. For this we have to safe the callbacks itself.
self.foo_callback = function (_) ... end
renoise.song().some_observable:add_notifier(self.foo_callback)
renoise.song().some_observable:remove_notifier(self.foo_callback)
Right now its done using the is_first_run and is_not_active values. which is kinda the same, but we can't react on configuration changes (on restarting the plugin start -> stop -> reconfigure -> start) which need different callback registrations, than before.
renoise object notfiers are still calling function. but theses functions just don't react to changes when inactive.
It is better to unregister theses functions. For this we have to safe the callbacks itself.
Right now its done using the
is_first_run
andis_not_active
values. which is kinda the same, but we can't react on configuration changes (on restarting the pluginstart
->stop
-> reconfigure ->start
) which need different callback registrations, than before.