add ForceSave to ThemePrefs; will save the file even if it says it doesn't need saving. this is critical to actually getting the theme preferences to be created without having to make changes first.

This commit is contained in:
AJ Kelly
2012-01-10 13:29:10 -06:00
parent 1222f4aa75
commit 7e53835f3b
2 changed files with 8 additions and 3 deletions
@@ -120,6 +120,13 @@ ThemePrefs =
IniFile.WriteFile( ThemePrefsPath, PrefsTable )
end,
-- for when you absolutely have to save, no matter what NeedsSaved says.
ForceSave = function()
if not IniFile then return false end
NeedsSaved = false
IniFile.WriteFile( ThemePrefsPath, PrefsTable )
end,
Get = function( name )
Trace( ("ThemePrefs.Get(%s)"):format(name) )
local tbl = ResolveTable(name)