2012-10-18, 02:38 AM
Would it be possible to get an override for those settings on a per-user basis?
Basically something like (pseudo code):
I won't need you to set/save the per-user setting, just apply it if it exists.
Basically something like (pseudo code):
Code:
[color=#008000]// get settings from config.xml[/color]
[color=#0000FF]bool[/color] startFullScreen = SettingsHelper.GetInstance().GetSetting([color=#FF0000]"/Settings/General/StartFullscreen"[/color], false);
[color=#0000FF]bool[/color] alwaysOnTop = SettingsHelper.GetInstance().GetSetting([color=#FF0000]"/Settings/General/AlwaysOnTop"[/color], false); [color=#008000]// Where exactly is this setting saved anyway?[/color]
[color=#008000]// get per-user override setting from the HKEY_CURRENT_USER registry if it exists or use current value if it doesn't[/color]
startFullScreen = Microsoft.Win32.[color=#0000FF]Registry[/color].GetValue([color=#FF0000]@"HKEY_CURRENT_USER\Software\NextPVR"[/color], [color=#FF0000]"StartFullScreen"[/color], startFullScreen);
alwaysOnTop = Microsoft.Win32.[color=#0000FF]Registry[/color].GetValue([color=#FF0000]@"HKEY_CURRENT_USER\Software\NextPVR"[/color], [color=#FF0000]"AlwaysOnTop"[/color], alwaysOnTop);
[color=#008000]// Apply Setting[/color]
ShowWindow(startFullScreen, alwaysOnTop);
I won't need you to set/save the per-user setting, just apply it if it exists.