From d154c83d28e8388e1b9fac3548625ddae595aed9 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 9 Sep 2017 15:30:57 +0200 Subject: [PATCH] - add-locale: fix flag-icon; remove some lua-warnings --- archive-sources/add-locale/add-locale.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archive-sources/add-locale/add-locale.lua b/archive-sources/add-locale/add-locale.lua index 00570957..2b500fe2 100755 --- a/archive-sources/add-locale/add-locale.lua +++ b/archive-sources/add-locale/add-locale.lua @@ -96,7 +96,7 @@ end function get_icon(locale) local icon = "dummy" if file_exists(icons_dir .. "/" .. locale .. ".png") then - icon = icons_dir .. "/" .. locale .. ".png" + icon = locale end return icon end @@ -125,7 +125,7 @@ end function hide_infobox() if infobox ~= nil then - infobox:hide{no_restore=true} + infobox:hide() infobox = nil end end @@ -215,7 +215,7 @@ function w_chooser(locale) end until msg == RC.home or msg == RC.setup; - chooser:hide{no_restore=true} + chooser:hide() chooser = nil if msg == RC.setup then