From 80b684e95b7daaf312bd660840b5f915536a984b Mon Sep 17 00:00:00 2001 From: pointfeev Date: Mon, 22 Jul 2024 01:50:17 -0400 Subject: [PATCH] Check ComboBoxRenderer.IsSupported --- CreamInstaller/Components/CustomTreeView.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)