Reverted register_event calls back to API 6.1.0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user