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

@@ -25,7 +25,7 @@ For each source folder, a separate <trk> is generated in the gpx file.
local dt = require "darktable"
local df = require "lib/dtutils.file"
local dl = require "lib/dtutils"
require "lib/darktable_transition"
local gettext = dt.gettext
dl.check_min_api_version("3.0.0", "gpx-export")
@@ -175,7 +175,7 @@ if dt.gui.current_view().id == "lighttable" then
else
if not gpx.event_registered then
dt.register_event(
"gpx_export", "view-changed",
"view-changed",
function(event, old_view, new_view)
if new_view.name == "lighttable" and old_view.name == "darkroom" then
install_module()