Browse Source

block F5 = Refresh when debugging.

pull/191/merge
Eusebiu Marcu 15 years ago
parent
commit
42d31e39d1
  1. 2
      ILSpy/MainWindow.xaml.cs

2
ILSpy/MainWindow.xaml.cs

@ -297,11 +297,13 @@ namespace ICSharpCode.ILSpy
void RefreshCommandExecuted(object sender, ExecutedRoutedEventArgs e) void RefreshCommandExecuted(object sender, ExecutedRoutedEventArgs e)
{ {
if (!DebuggerService.CurrentDebugger.IsDebugging) {
e.Handled = true; e.Handled = true;
var path = GetPathForNode(treeView.SelectedItem as SharpTreeNode); var path = GetPathForNode(treeView.SelectedItem as SharpTreeNode);
ShowAssemblyList(assemblyListManager.LoadList(ILSpySettings.Load(), assemblyList.ListName)); ShowAssemblyList(assemblyListManager.LoadList(ILSpySettings.Load(), assemblyList.ListName));
SelectNode(FindNodeByPath(path, true)); SelectNode(FindNodeByPath(path, true));
} }
}
void AttachToProcessExecuted(object sender, ExecutedRoutedEventArgs e) void AttachToProcessExecuted(object sender, ExecutedRoutedEventArgs e)
{ {

Loading…
Cancel
Save