[mythtv] Correct way to write out to the settings table?
drew at lug.net.nz
Sun Feb 23 02:13:16 EST 2003
On Sun, 2003-02-23 at 01:57, Isaac Richards wrote:
> I think you're going about it wrong.. You should probably just have a toggle
> setting for 'random theme' in the appearance dialog. Then, when each of the
> programs runs, they can check to see if that setting is set, and if it is,
> scan for available themes and pick one randomly. I don't think you'd need to
> write the actual randomized theme name to the database at all.
That was my initial thought too, and I do have a toggle to turn it
on/off in the setup, but if it's not written to the db then each
"module" (eg mythweather, mythmusic) loads a different theme and that
(to me) just looks plain odd, I was going for the consistant look but
different theme each time you started the frontend.
I've just discovered gContext->SetSetting, which looks like it changes
the setting in the running config, but I'm not sure on that (I'm not
sure on anything to be honest). I guess now all I need to do is to tell
it to write the settings out to the db, I did try
AppearanceSettings.save(db) but that didn't seem to work.
Drew Whittle <drew at lug.net.nz>
More information about the mythtv-dev