Skip to content

Commit c80c7de

Browse files
miloushCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 7f75589 commit c80c7de

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

ILSpy/Commands/BrowseBackCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected override void OnExecute(object sender, ExecutedRoutedEventArgs e)
5757

5858
public IEnumerable ParameterList => assemblyTreeModel.GetNavigateHistory(false).Reverse();
5959

60-
public object GetParamaterText(object parameter)
60+
public object GetParameterText(object parameter)
6161
{
6262
return (parameter as NavigationState)?.NavigationText;
6363
}

ILSpy/Commands/BrowseForwardCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected override void OnExecute(object sender, ExecutedRoutedEventArgs e)
5757

5858
public IEnumerable ParameterList => assemblyTreeModel.GetNavigateHistory(true).Reverse();
5959

60-
public object GetParamaterText(object parameter)
60+
public object GetParameterText(object parameter)
6161
{
6262
return (parameter as NavigationState)?.NavigationText;
6363
}

ILSpy/Commands/SimpleCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public interface IProvideParameterBinding
4646
public interface IProvideParameterList
4747
{
4848
IEnumerable ParameterList { get; }
49-
object GetParamaterText(object parameter);
49+
object GetParameterText(object parameter);
5050
}
5151
}

ILSpy/Controls/MainToolBar.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static UIElement CreateToolbarItem(IExport<ICommand, IToolbarCommandMetadata> co
148148
BindingOperations.SetBinding(dropDownToggle, IsEnabledProperty,
149149
new Binding(nameof(IsEnabled)) { Source = toolbarItem });
150150

151-
// When the toggle button is checked, clicking it to uncheck will dimiss the menu first
151+
// When the toggle button is checked, clicking it to uncheck will dismiss the menu first
152152
// which unchecks the toggle button via binding above and the click is used to open it again.
153153
// This is a workaround to ignore the click to uncheck the already unchecked toggle button.
154154
// We have to ensure the dismissing click is on the toggle button, otherwise the flag
@@ -189,7 +189,7 @@ static void PrepareParameterList(ContextMenu menu)
189189
var headerPresenter = new ContentPresenter { RecognizesAccessKey = false };
190190
parameterItem.Header = headerPresenter;
191191

192-
var header = parameterList.GetParamaterText(parameter);
192+
var header = parameterList.GetParameterText(parameter);
193193
switch (header)
194194
{
195195
case SharpTreeNode node:

0 commit comments

Comments
 (0)