Reverted register_event calls back to API 6.1.0

This commit is contained in:
Bill Ferguson
2021-06-11 21:44:38 -04:00
parent 9d59479049
commit 4b63240ab9
32 changed files with 67 additions and 88 deletions

View File

@@ -36,7 +36,6 @@ USAGE
local dt = require "darktable"
local du = require "lib/dtutils"
require "lib/darktable_transition"
require "darktable.debug"
du.check_min_api_version("2.1.0", "generate_image_txt")
@@ -67,7 +66,7 @@ end
local command_setting = dt.preferences.read("generate_image_txt", "command", "string")
check_command(command_setting)
dt.register_event("gen_img_txt", "mouse-over-image-changed",
dt.register_event("mouse-over-image-changed",
function(event, img)
-- no need to waste processing time if the image has a txt file already
if not img or img.has_txt or not dt.preferences.read("generate_image_txt", "enabled", "bool") then