Changed check_min_api_version() to print error messages and throw an error if the minimum api is not satisfied. Updated the scripts to reflect the changed check_min_api_version().
This commit is contained in:
@@ -57,10 +57,7 @@ if not df.check_if_bin_exists("pdflatex") then
|
||||
return
|
||||
end
|
||||
|
||||
if not du.check_min_api_version("4.0.0") then
|
||||
dt.print("ERROR:pdf_slideshow failed to load. Lua API version 4.0.0 or greater required.")
|
||||
return
|
||||
end
|
||||
du.check_min_api_version("4.0.0", "pdf_slideshow")
|
||||
|
||||
dt.preferences.register
|
||||
("pdf_slideshow","open with","string",
|
||||
|
||||
Reference in New Issue
Block a user