From 81c93a9be3304b8c819066f76b596217f8982a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D=E7=82=B9lilac?= Date: Thu, 31 Dec 2020 03:21:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=84=9F=E7=9F=A5=E7=B1=BB=E5=9E=8B=E7=A9=BA?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E8=A7=A3=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ContextMenuManager/Controls/ShellList.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ContextMenuManager/Controls/ShellList.cs b/ContextMenuManager/Controls/ShellList.cs index 7b8c77e..285b957 100644 --- a/ContextMenuManager/Controls/ShellList.cs +++ b/ContextMenuManager/Controls/ShellList.cs @@ -301,7 +301,7 @@ public PerceptionItem() this.Text = AppString.Item.SetPerceivedType; this.Visible = TypeItem.Extension != null; this.AddCtr(cmbType); - cmbType.Text = Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(PerceivedType); + cmbType.Text = Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(PerceivedType ?? string.Empty); cmbType.Items.AddRange(PerceptionTypes); cmbType.TextChanged += (sneder, e) => PerceivedType = cmbType.Text; TypeItem.ExtensionChanged += (sender, e) => this.Visible = TypeItem.Extension != null;