Bugzilla – Bug 7080
Improve applet default settings api
Last modified: 2008-08-04 14:05:54 UTC
It should be: function defaultSettings(meta, settings) --- stuff return settings end This would allow creating new settings, modifying settings and performing setting upgrades.
once a user has a settings.lua file, default settings are not used at all. we want the ability to be able to read in existing settings on top of the defaults, so both can be used.
support for upgradeSettings() added in 7.1 r2609 FYI, I did this as a test in SetupWallpaperMeta, and it worked like a charm-- function upgradeSettings(meta, settings) for id, wallpaper in pairs(settings) do if wallpaper == 'concrete.png' then settings[id] = 'note.jpg' log:warn('****************', settings[id]) end end return settings end
This bug has now been fixed in the 7.1 release version of SqueezeCenter! Please download the new version from http://www.slimdevices.com if you haven't already. If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.