Skip to content

Commit

Permalink
icsharpcode#2623 Fix error in start up in zh-Hans
Browse files Browse the repository at this point in the history
  • Loading branch information
czphoenix committed Feb 8, 2022
1 parent 41c99e4 commit 548bf19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ILSpy/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private void DockWorkspace_PropertyChanged(object sender, PropertyChangedEventAr
filterSettings = dock.ActiveTabPage.FilterSettings;
filterSettings.PropertyChanged += filterSettings_PropertyChanged;

var windowMenuItem = mainMenu.Items.OfType<MenuItem>().First(m => (string)m.Tag == Properties.Resources._Window);
var windowMenuItem = mainMenu.Items.OfType<MenuItem>().First(m => (string)m.Tag == nameof(Properties.Resources._Window));
foreach (MenuItem menuItem in windowMenuItem.Items.OfType<MenuItem>())
{
if (menuItem.IsCheckable && menuItem.Tag is TabPageModel)
Expand Down Expand Up @@ -355,7 +355,7 @@ private void InitToolPanes()

private void InitWindowMenu()
{
var windowMenuItem = mainMenu.Items.OfType<MenuItem>().First(m => (string)m.Tag == Properties.Resources._Window);
var windowMenuItem = mainMenu.Items.OfType<MenuItem>().First(m => (string)m.Tag == nameof(Properties.Resources._Window));
Separator separatorBeforeTools, separatorBeforeDocuments;
windowMenuItem.Items.Add(separatorBeforeTools = new Separator());
windowMenuItem.Items.Add(separatorBeforeDocuments = new Separator());
Expand Down

0 comments on commit 548bf19

Please sign in to comment.