From 95d8ed99ee67acf56fff09a06b86bd29de914d73 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Tue, 20 May 2025 14:43:54 +0800 Subject: [PATCH] Small fix to Google translate search script --- community/google-translate-search.lua | 2 +- samples/deprecated-sample.lua | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 samples/deprecated-sample.lua diff --git a/community/google-translate-search.lua b/community/google-translate-search.lua index 1d08ec5..423b96b 100644 --- a/community/google-translate-search.lua +++ b/community/google-translate-search.lua @@ -26,7 +26,7 @@ end function on_click() if text_to == "" then - search:show_top({"Translating..."}, {blue}) + search:show_buttons({"Translating..."}, {blue}, true) request_trans(text_from) return false else diff --git a/samples/deprecated-sample.lua b/samples/deprecated-sample.lua new file mode 100644 index 0000000..a64cc65 --- /dev/null +++ b/samples/deprecated-sample.lua @@ -0,0 +1,4 @@ +function on_resume() + ui:get_default_title() -- deprecated function + ui:show_text("Test") +end