Harden protocol transfers and config validation
This commit is contained in:
+3
-1
@@ -336,7 +336,9 @@ public class ActionDialog : Form
|
||||
_profileCombo.Items.AddRange(new object[]
|
||||
{ "Nächstes Profil (Zyklus)", "Profil 1", "Profil 2", "Profil 3" });
|
||||
_profileCombo.SelectedIndex = action.Type == ActionType.ProfileSwitch
|
||||
? (action.Data == 0xFFFF ? 0 : Math.Clamp((int)action.Data + 1, 1, 3))
|
||||
? (action.Data is 0x00FF or 0xFFFF
|
||||
? 0
|
||||
: Math.Clamp((int)action.Data + 1, 1, 3))
|
||||
: 0;
|
||||
_profilePanel.Controls.AddRange(new Control[] { profileLabel, _profileCombo });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user