[script_manager] updated register_event syntax to API 7.0.0
This commit is contained in:
@@ -1145,7 +1145,7 @@ if dt.gui.current_view().id == "lighttable" then
|
||||
else
|
||||
if not sm.event_registered then
|
||||
dt.register_event(
|
||||
"view-changed",
|
||||
"script_manager", "view-changed",
|
||||
function(event, old_view, new_view)
|
||||
if new_view.name == "lighttable" and old_view.name == "darkroom" then
|
||||
install_module()
|
||||
|
||||
Reference in New Issue
Block a user