Browse Source

Do not show 'sn.exe not found' message when key creation dialog is cancelled.

pull/30/head
Matt Ward 13 years ago
parent
commit
d5cf5d1567
  1. 7
      src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/Signing.xaml.cs

7
src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/Signing.xaml.cs

@ -143,11 +143,8 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels @@ -143,11 +143,8 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels
});
}
private void CreateKeyFile()
{
if (File.Exists(StrongNameTool)) {
string title = StringParser.Parse("${res:Dialog.ProjectOptions.Signing.CreateKey.Title}");
string str = StringParser.Parse("${res:Dialog.ProjectOptions.Signing.CreateKey.KeyName}");
@ -161,9 +158,9 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels @@ -161,9 +158,9 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels
AssemblyOriginatorKeyFile.Value = MSBuildInternals.Escape(key);
keyFileComboBox.Text = AssemblyOriginatorKeyFile.Value;
}
} else {
MessageService.ShowMessage("${res:Dialog.ProjectOptions.Signing.SNnotFound}");
}
} else {
MessageService.ShowMessage("${res:Dialog.ProjectOptions.Signing.SNnotFound}");
}
}

Loading…
Cancel
Save