mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Skip unsupported Lighting modes #3195
This commit is contained in:
@@ -326,13 +326,8 @@ namespace GHelper
|
||||
return;
|
||||
}
|
||||
|
||||
if (comboBoxLightingMode.SelectedIndex >= supportedLightingModes.Count)
|
||||
{
|
||||
// Unsupported mode
|
||||
return;
|
||||
}
|
||||
|
||||
LightingMode lm = supportedLightingModes[comboBoxLightingMode.SelectedIndex];
|
||||
var index = comboBoxLightingMode.SelectedIndex;
|
||||
LightingMode lm = supportedLightingModes[index < supportedLightingModes.Count ? index : 0 ];
|
||||
|
||||
LightingSetting? ls = mouse.LightingSettingForZone(visibleZone);
|
||||
if (ls.LightingMode == lm)
|
||||
|
||||
Reference in New Issue
Block a user