From 5c991cd06a5b0ddbf74b575b573d94106a2fd2f5 Mon Sep 17 00:00:00 2001 From: dexyfex Date: Sun, 4 Mar 2018 03:17:12 +1100 Subject: [PATCH] Theming for RPF Explorer bug fix for View menu --- ExploreForm.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ExploreForm.cs b/ExploreForm.cs index bfea49d..48a31be 100644 --- a/ExploreForm.cs +++ b/ExploreForm.cs @@ -2758,9 +2758,13 @@ namespace CodeWalker MainListView.View = v; - foreach (ToolStripMenuItem menu in ViewMenu.DropDownItems) + foreach (var item in ViewMenu.DropDownItems) { - menu.Checked = false; + var menu = item as ToolStripMenuItem; + if (menu != null) + { + menu.Checked = false; + } } switch (v)