From c2ccfa0cd0db4ca944f5988c8bde74448972fd34 Mon Sep 17 00:00:00 2001 From: Andreas Weizel Date: Wed, 27 Jun 2018 22:32:12 +0200 Subject: [PATCH] AddIn: Don't show double warning if assembly information is missing while project is loading. --- ILSpy.AddIn/Commands/OpenCodeItemCommand.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ILSpy.AddIn/Commands/OpenCodeItemCommand.cs b/ILSpy.AddIn/Commands/OpenCodeItemCommand.cs index a80748ce1..958b0e00a 100644 --- a/ILSpy.AddIn/Commands/OpenCodeItemCommand.cs +++ b/ILSpy.AddIn/Commands/OpenCodeItemCommand.cs @@ -106,8 +106,7 @@ namespace ICSharpCode.ILSpy.AddIn.Commands owner.ShowMessage(OLEMSGICON.OLEMSGICON_WARNING, "Symbol can't be opened. This might happen while project is loading.", Environment.NewLine, invalidSymbolReference.AssemblyFile); - } - if (invalidSymbolReference.IsProjectReference) { + } else if (invalidSymbolReference.IsProjectReference) { // Some project references don't have assemblies, maybe not compiled yet? if (owner.ShowMessage( OLEMSGBUTTON.OLEMSGBUTTON_YESNO, OLEMSGDEFBUTTON.OLEMSGDEFBUTTON_FIRST, OLEMSGICON.OLEMSGICON_WARNING,