inline if didn't work. Added intermediate register_event function in transition library
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
local dt = require "darktable"
|
||||
local du = require "lib/dtutils"
|
||||
local df = require "lib/dtutils.file"
|
||||
require "lib/darktable_transition"
|
||||
|
||||
du.check_min_api_version("5.0.0", "executable_manager")
|
||||
|
||||
@@ -215,7 +216,7 @@ if dt.gui.current_view().id == "lighttable" then
|
||||
else
|
||||
if not exec_man.event_registered then
|
||||
dt.register_event(
|
||||
CURR_API_STRING >= "6.2.1" and "executable_manager", "view-changed" or "view-changed" ,
|
||||
"executable_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