Browse Source

- add-locale: fix flag-icon; remove some lua-warnings

master
vanhofen 8 years ago
parent
commit
d154c83d28
  1. 6
      archive-sources/add-locale/add-locale.lua

6
archive-sources/add-locale/add-locale.lua

@ -96,7 +96,7 @@ end
function get_icon(locale) function get_icon(locale)
local icon = "dummy" local icon = "dummy"
if file_exists(icons_dir .. "/" .. locale .. ".png") then if file_exists(icons_dir .. "/" .. locale .. ".png") then
icon = icons_dir .. "/" .. locale .. ".png" icon = locale
end end
return icon return icon
end end
@ -125,7 +125,7 @@ end
function hide_infobox() function hide_infobox()
if infobox ~= nil then if infobox ~= nil then
infobox:hide{no_restore=true} infobox:hide()
infobox = nil infobox = nil
end end
end end
@ -215,7 +215,7 @@ function w_chooser(locale)
end end
until msg == RC.home or msg == RC.setup; until msg == RC.home or msg == RC.setup;
chooser:hide{no_restore=true} chooser:hide()
chooser = nil chooser = nil
if msg == RC.setup then if msg == RC.setup then

Loading…
Cancel
Save