Added check to see if the current view was lighttable before calling darktable.register_lib. If the view was not, then added an event listener to the view-changed event. When the view changed to lighttable darktable.register_lib was called to install the module.
Added check to see if the current view was lighttable before calling darktable.register_lib. If the view was not, then added an event listener to the view-changed event. When the view changed to lighttable darktable.register_lib was called to install the module.
Fixes #278