info on how to check the availability of the API function

This commit is contained in:
Evgeny
2022-07-30 15:21:20 +03:00
parent 1183ec7bb9
commit a307e9c04c
2 changed files with 2 additions and 2 deletions

View File

@@ -536,7 +536,7 @@ You can also check the presence of a particular API function this way (note the
``` ```
if ui.show_list_dialog then if ui.show_list_dialog then
ui:show_text("list dialog supported") ui:show_text("list dialog is supported")
else else
ui:show_text("list dialog is not supported") ui:show_text("list dialog is not supported")
end end

View File

@@ -1,6 +1,6 @@
function on_resume() function on_resume()
if ui.show_list_dialog then if ui.show_list_dialog then
ui:show_text("list dialog supported") ui:show_text("list dialog is supported")
else else
ui:show_text("list dialog is not supported") ui:show_text("list dialog is not supported")
end end