From c80c7deda4a256cc8fd0bf9ada65dbed29921a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ku=C4=8Dera?= <10546952+miloush@users.noreply.github.com> Date: Sun, 14 Dec 2025 18:02:47 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ILSpy/Commands/BrowseBackCommand.cs | 2 +- ILSpy/Commands/BrowseForwardCommand.cs | 2 +- ILSpy/Commands/SimpleCommand.cs | 2 +- ILSpy/Controls/MainToolBar.xaml.cs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ILSpy/Commands/BrowseBackCommand.cs b/ILSpy/Commands/BrowseBackCommand.cs index 2c2e78798..2db604b65 100644 --- a/ILSpy/Commands/BrowseBackCommand.cs +++ b/ILSpy/Commands/BrowseBackCommand.cs @@ -57,7 +57,7 @@ namespace ICSharpCode.ILSpy public IEnumerable ParameterList => assemblyTreeModel.GetNavigateHistory(false).Reverse(); - public object GetParamaterText(object parameter) + public object GetParameterText(object parameter) { return (parameter as NavigationState)?.NavigationText; } diff --git a/ILSpy/Commands/BrowseForwardCommand.cs b/ILSpy/Commands/BrowseForwardCommand.cs index 919ecdea0..022c74936 100644 --- a/ILSpy/Commands/BrowseForwardCommand.cs +++ b/ILSpy/Commands/BrowseForwardCommand.cs @@ -57,7 +57,7 @@ namespace ICSharpCode.ILSpy public IEnumerable ParameterList => assemblyTreeModel.GetNavigateHistory(true).Reverse(); - public object GetParamaterText(object parameter) + public object GetParameterText(object parameter) { return (parameter as NavigationState)?.NavigationText; } diff --git a/ILSpy/Commands/SimpleCommand.cs b/ILSpy/Commands/SimpleCommand.cs index da37bc81b..f57d07571 100644 --- a/ILSpy/Commands/SimpleCommand.cs +++ b/ILSpy/Commands/SimpleCommand.cs @@ -46,6 +46,6 @@ namespace ICSharpCode.ILSpy public interface IProvideParameterList { IEnumerable ParameterList { get; } - object GetParamaterText(object parameter); + object GetParameterText(object parameter); } } diff --git a/ILSpy/Controls/MainToolBar.xaml.cs b/ILSpy/Controls/MainToolBar.xaml.cs index 4cf45a419..e76d19c9c 100644 --- a/ILSpy/Controls/MainToolBar.xaml.cs +++ b/ILSpy/Controls/MainToolBar.xaml.cs @@ -148,7 +148,7 @@ namespace ICSharpCode.ILSpy.Controls BindingOperations.SetBinding(dropDownToggle, IsEnabledProperty, new Binding(nameof(IsEnabled)) { Source = toolbarItem }); - // When the toggle button is checked, clicking it to uncheck will dimiss the menu first + // When the toggle button is checked, clicking it to uncheck will dismiss the menu first // which unchecks the toggle button via binding above and the click is used to open it again. // This is a workaround to ignore the click to uncheck the already unchecked toggle button. // We have to ensure the dismissing click is on the toggle button, otherwise the flag @@ -189,7 +189,7 @@ namespace ICSharpCode.ILSpy.Controls var headerPresenter = new ContentPresenter { RecognizesAccessKey = false }; parameterItem.Header = headerPresenter; - var header = parameterList.GetParamaterText(parameter); + var header = parameterList.GetParameterText(parameter); switch (header) { case SharpTreeNode node: