diff --git a/CreamInstaller/Components/CustomTreeView.cs b/CreamInstaller/Components/CustomTreeView.cs index 73ee453..5a33ebc 100644 --- a/CreamInstaller/Components/CustomTreeView.cs +++ b/CreamInstaller/Components/CustomTreeView.cs @@ -126,7 +126,7 @@ internal sealed class CustomTreeView : TreeView TextRenderer.DrawText(graphics, text, font, point, color, TextFormatFlags.Default); } - if (form is SelectForm) + if (form is SelectForm && ComboBoxRenderer.IsSupported) { Selection selection = Selection.FromId(platform, id); if (selection is not null && selection.CanUseProxy) @@ -209,7 +209,7 @@ internal sealed class CustomTreeView : TreeView break; } - if (e.Button is not MouseButtons.Left) + if (e.Button is not MouseButtons.Left || !ComboBoxRenderer.IsSupported) return; if (comboBoxBounds.Count > 0 && selectForm is not null) foreach (KeyValuePair pair in comboBoxBounds)