Fix skin and locale at first run, adding new locale to combobox, exit function double call, enable sound option

This commit is contained in:
Henrique
2012-06-20 03:31:52 -03:00
parent eb457bf9cd
commit db4ced65eb
5 changed files with 19 additions and 10 deletions

View File

@@ -29,8 +29,8 @@ function Skins.init()
g_resources.addToSearchPath(getSkinPath(defaultSkinName), 0)
end
local userSkinName = Settings.get('skin')
if userSkinName and Skins.setSkin(userSkinName) then
local userSkinName = Settings.get('skin', 'false')
if userSkinName ~= 'false' and Skins.setSkin(userSkinName) then
pdebug('Using configured skin: ' .. userSkinName)
else
pdebug('Using default skin: ' .. defaultSkinName)