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

@@ -45,7 +45,6 @@ USAGE
local dt = require "darktable"
local du = require "lib/dtutils"
require "lib/darktable_transition"
local debug = require "darktable.debug"
local qt = {}
@@ -258,7 +257,7 @@ if dt.gui.current_view().id == "lighttable" then
else
if not qt.event_registered then
dt.register_event(
"quicktag", "view-changed",
"view-changed",
function(event, old_view, new_view)
if new_view.name == "lighttable" and old_view.name == "darkroom" then
install_module()
@@ -271,7 +270,7 @@ end
-- create shortcuts
for i=1,qnr do
dt.register_event("quicktag", "shortcut",
dt.register_event("shortcut",
function(event, shortcut) tagattach(tostring(quicktag_table[i])) end,
string.format(_("quicktag %i"),i))
end