inline if didn't work. Added intermediate register_event function in transition library

This commit is contained in:
wpferguson
2021-02-10 00:18:48 -05:00
parent 2b28f021ee
commit b1498aa664
33 changed files with 139 additions and 57 deletions

View File

@@ -46,6 +46,7 @@ Select a style, whether you want tags to be copied from the original, and any ad
local dt = require 'darktable'
local df = require 'lib/dtutils.file'
require "lib/darktable_transition"
local dsys = require 'lib/dtutils.system'
local mod = 'module_HDRMerge'
local os_path_seperator = '/'
@@ -438,7 +439,7 @@ if dt.gui.current_view().id == "lighttable" then
else
if not HDRM.event_registered then
dt.register_event(
CURR_API_STRING >= "6.2.1" and "HDRmerge", "view-changed" or "view-changed" ,
"HDRmerge", "view-changed",
function(event, old_view, new_view)
if new_view.name == "lighttable" and old_view.name == "darkroom" then
install_module()