@@ -23,6 +23,7 @@ public class ConfigurationSettings
2323 public const string SETTING_STARTUPPLAYBACKDEVICE = "StartupPlaybackDeviceID" ;
2424 public const string SETTING_DUALSWITCHMODE = "DualSwitchMode" ;
2525 public const string SETTING_SHOWDISABLEDDEVICES = "ShowDisabledDevices" ;
26+ public const string SETTING_SHOWUNKNOWNDEVICESINHOTKEYLIST = "ShowUnknownDevicesInHotkeyList" ;
2627 public const string SETTING_SHOWDISCONNECTEDDDEVICES = "ShowDisconnectedDevices" ;
2728 public const string SETTING_SHOWDPDEVICEIICONINTRAY = "ShowDPDeviceIconInTray" ;
2829 public const string SETTING_UPDATE_NOTIFICATIONS_ENABLED = "UpdateNotificationsEnabled" ;
@@ -104,6 +105,16 @@ public bool ShowDisabledDevices
104105 set { _configWriter . Set ( SETTING_SHOWDISABLEDDEVICES , value . ToString ( ) ) ; }
105106 }
106107
108+ public bool ShowUnknownDevicesInHotkeyList
109+ {
110+ get
111+ {
112+ return
113+ Convert . ToBoolean ( _configWriter . Get ( SETTING_SHOWUNKNOWNDEVICESINHOTKEYLIST ) ) ;
114+ }
115+ set { _configWriter . Set ( SETTING_SHOWUNKNOWNDEVICESINHOTKEYLIST , value . ToString ( ) ) ; }
116+ }
117+
107118 public bool ShowDisconnectedDevices
108119 {
109120 get
@@ -278,6 +289,9 @@ public void CreateDefaults()
278289 if ( ! SettingExists ( SETTING_SHOWDISABLEDDEVICES ) )
279290 ShowDisabledDevices = false ;
280291
292+ if ( ! SettingExists ( SETTING_SHOWUNKNOWNDEVICESINHOTKEYLIST ) )
293+ ShowUnknownDevicesInHotkeyList = false ;
294+
281295 if ( ! SettingExists ( SETTING_SHOWDISCONNECTEDDDEVICES ) )
282296 ShowDisconnectedDevices = false ;
283297
@@ -300,6 +314,7 @@ public void LoadFrom(ConfigurationSettings otherSettings)
300314 HotKeys = otherSettings . HotKeys ;
301315 PollForUpdates = otherSettings . PollForUpdates ;
302316 ShowDisabledDevices = otherSettings . ShowDisabledDevices ;
317+ ShowUnknownDevicesInHotkeyList = otherSettings . ShowUnknownDevicesInHotkeyList ;
303318 ShowDisconnectedDevices = otherSettings . ShowDisconnectedDevices ;
304319 StartMinimized = otherSettings . StartMinimized ;
305320 StartupPlaybackDeviceID = otherSettings . StartupPlaybackDeviceID ;
0 commit comments