Skip to content

Commit

Permalink
感知类型空异常解除
Browse files Browse the repository at this point in the history
  • Loading branch information
BluePointLilac committed Dec 30, 2020
1 parent 6db6878 commit 81c93a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ContextMenuManager/Controls/ShellList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 81c93a9

Please sign in to comment.