[mythtv] Correct way to write out to the settings table?
ijr at po.cwru.edu
Sat Feb 22 08:19:24 EST 2003
On Saturday 22 February 2003 08:13 am, Drew Whittle wrote:
> 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.
Did you try the AppearanceSettings.save() after calling
gContext->SetSetting()? I believe that should do what you want.
More information about the mythtv-dev