Merge pull request #282 from wpferguson/change_name_to_id
Fix script_manager not starting (and any other register_lib module)
This commit is contained in:
@@ -169,7 +169,7 @@ GUI.collection = dt.new_widget("button"){
|
|||||||
clicked_callback = function() main(true) end
|
clicked_callback = function() main(true) end
|
||||||
}
|
}
|
||||||
|
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not Ag.event_registered then
|
if not Ag.event_registered then
|
||||||
|
|||||||
@@ -432,7 +432,7 @@ else
|
|||||||
GUI.stack.active = 2
|
GUI.stack.active = 2
|
||||||
end
|
end
|
||||||
|
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not HDRM.event_registered then
|
if not HDRM.event_registered then
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ darktable.register_tag_mapping("Example",
|
|||||||
["*****R"] = { "Rejected" } })
|
["*****R"] = { "Rejected" } })
|
||||||
]]
|
]]
|
||||||
|
|
||||||
if darktable.gui.current_view().name == "lighttable" then
|
if darktable.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not ltt.event_registered then
|
if not ltt.event_registered then
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ cadt.widget_table[#cadt.widget_table+1] = taglist_label
|
|||||||
|
|
||||||
|
|
||||||
-- create modul
|
-- create modul
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not cadt.event_registered then
|
if not cadt.event_registered then
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ table.insert(eL.widgets, export_chooser_button)
|
|||||||
table.insert(eL.widgets, warning_label)
|
table.insert(eL.widgets, warning_label)
|
||||||
table.insert(eL.widgets, export_button)
|
table.insert(eL.widgets, export_button)
|
||||||
|
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not eL.event_registered then
|
if not eL.event_registered then
|
||||||
|
|||||||
@@ -411,7 +411,7 @@ table.insert(ee.widgets, combobox)
|
|||||||
table.insert(ee.widgets, box1)
|
table.insert(ee.widgets, box1)
|
||||||
|
|
||||||
-- register new module "external editors" in lighttable ------------------------
|
-- register new module "external editors" in lighttable ------------------------
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not ee.event_registered then
|
if not ee.event_registered then
|
||||||
|
|||||||
@@ -484,7 +484,7 @@ fc.widget = dt.new_widget("box"){
|
|||||||
table.unpack(widgets),
|
table.unpack(widgets),
|
||||||
}
|
}
|
||||||
|
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not fc.event_registered then
|
if not fc.event_registered then
|
||||||
|
|||||||
@@ -683,7 +683,7 @@ gT.widget = dt.new_widget("box")
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not gT.event_registered then
|
if not gT.event_registered then
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ gpx.widget = dt.new_widget("box")
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not gpx.event_registered then
|
if not gpx.event_registered then
|
||||||
|
|||||||
@@ -546,7 +546,7 @@ img_time.widget = dt.new_widget("box"){
|
|||||||
img_time.stack,
|
img_time.stack,
|
||||||
}
|
}
|
||||||
|
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not img_time.event_registered then
|
if not img_time.event_registered then
|
||||||
|
|||||||
@@ -435,7 +435,7 @@ dt.preferences.register(MODULE_NAME,
|
|||||||
|
|
||||||
dt.register_event("mouse-over-image-changed",PHOTILS.image_changed)
|
dt.register_event("mouse-over-image-changed",PHOTILS.image_changed)
|
||||||
|
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not PHOTILS.event_registered then
|
if not PHOTILS.event_registered then
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ qt.widget_table[#qt.widget_table + 1] = new_qt_widget
|
|||||||
|
|
||||||
|
|
||||||
--create module
|
--create module
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not qt.event_registered then
|
if not qt.event_registered then
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ rt.rename_widget = darktable.new_widget ("box") {
|
|||||||
darktable.new_widget("button") { label = "Go", clicked_callback = rename_tags }
|
darktable.new_widget("button") { label = "Go", clicked_callback = rename_tags }
|
||||||
}
|
}
|
||||||
|
|
||||||
if darktable.gui.current_view().name == "lighttable" then
|
if darktable.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not rt.event_registered then
|
if not rt.event_registered then
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ darktable.preferences.register(
|
|||||||
|
|
||||||
-- Preferences: END
|
-- Preferences: END
|
||||||
|
|
||||||
if darktable.gui.current_view().name == "lighttable" then
|
if darktable.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not th.event_registered then
|
if not th.event_registered then
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ table.insert(mE.widgets, slider)
|
|||||||
-- ... and tell dt about it all
|
-- ... and tell dt about it all
|
||||||
|
|
||||||
|
|
||||||
if dt.gui.current_view().name == "lighttable" then -- make sure we are in lighttable view
|
if dt.gui.current_view().id == "lighttable" then -- make sure we are in lighttable view
|
||||||
install_module() -- register the lib
|
install_module() -- register the lib
|
||||||
else
|
else
|
||||||
if not mE.event_registered then -- if we are not in lighttable view then register an event to signal when we might be
|
if not mE.event_registered then -- if we are not in lighttable view then register an event to signal when we might be
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ if enfuse_installed then
|
|||||||
|
|
||||||
|
|
||||||
-- ... and tell dt about it all
|
-- ... and tell dt about it all
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not enf.event_registered then
|
if not enf.event_registered then
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ end
|
|||||||
|
|
||||||
main_label.reset_callback = reset_widget
|
main_label.reset_callback = reset_widget
|
||||||
|
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not ipiu.event_registered then
|
if not ipiu.event_registered then
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ update_combobox_choices(exec_man.selector, exec_table, 1)
|
|||||||
-- register the lib
|
-- register the lib
|
||||||
|
|
||||||
|
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not exec_man.event_registered then
|
if not exec_man.event_registered then
|
||||||
|
|||||||
@@ -764,7 +764,7 @@ sm.main_box = dt.new_widget("box"){
|
|||||||
-- D A R K T A B L E I N T E G R A T I O N
|
-- D A R K T A B L E I N T E G R A T I O N
|
||||||
-- - - - - - - - - - - - - - - - - - - - - - - -
|
-- - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
if dt.gui.current_view().name == "lighttable" then
|
if dt.gui.current_view().id == "lighttable" then
|
||||||
install_module()
|
install_module()
|
||||||
else
|
else
|
||||||
if not sm.event_registered then
|
if not sm.event_registered then
|
||||||
|
|||||||
Reference in New Issue
Block a user