From f9ecf0ba4ceedbdc30d9363ddd0c41668e9bf84c Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 11 Aug 2021 10:35:18 +0300 Subject: [PATCH] fix calc-widget --- community/calc-widget.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community/calc-widget.lua b/community/calc-widget.lua index 4be4193..2234de8 100644 --- a/community/calc-widget.lua +++ b/community/calc-widget.lua @@ -17,7 +17,7 @@ function on_click() end function on_dialog_action(text) - if text == "" then + if text == "" or text == -1 then on_alarm() else ui:show_text("Результат: "..calculate_string(text))