[script_manager] updated register_event syntax to API 7.0.0

This commit is contained in:
Bill Ferguson
2021-07-14 11:44:27 -04:00
parent 8f6c2c82d3
commit 4cbb7724f2

View File

@@ -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()