diff --git a/contrib/exportLUT.lua b/contrib/exportLUT.lua index e2f599e..da187f1 100644 --- a/contrib/exportLUT.lua +++ b/contrib/exportLUT.lua @@ -83,45 +83,22 @@ local export_button = dt.new_widget("button"){ clicked_callback = export_luts } -if (dt.configuration.api_version_major >= 6) then - - dt.register_lib( - "export haldclut", - "export haldclut", - true, - false, - {[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 100}}, +dt.register_lib( + "export haldclut", + "export haldclut", + true, + false, + {[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 100}}, + dt.new_widget("box") + { + orientation = "vertical", identity_label, file_chooser_button, output_label, export_chooser_button, warning_label, - dt.new_widget("box") - { - orientation = "vertical", - export_button - }, - nil, - nil - ) -else - dt.register_lib( - "export haldclut", - "export haldclut", - true, - false, - {[dt.gui.views.lighttable] = {"DT_UI_CONTAINER_PANEL_RIGHT_CENTER", 100}}, - dt.new_widget("box") - { - orientation = "vertical", - identity_label, - file_chooser_button, - output_label, - export_chooser_button, - warning_label, - export_button - }, - nil, - nil - ) -end \ No newline at end of file + export_button + }, + nil, + nil +) \ No newline at end of file