|
|
@ -30,6 +30,7 @@ using System.Windows.Navigation; |
|
|
|
using System.Windows.Threading; |
|
|
|
using System.Windows.Threading; |
|
|
|
|
|
|
|
|
|
|
|
using ICSharpCode.ILSpy.TextView; |
|
|
|
using ICSharpCode.ILSpy.TextView; |
|
|
|
|
|
|
|
using ICSharpCode.ILSpy.Options; |
|
|
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.ILSpy |
|
|
|
namespace ICSharpCode.ILSpy |
|
|
|
{ |
|
|
|
{ |
|
|
@ -57,8 +58,9 @@ namespace ICSharpCode.ILSpy |
|
|
|
public App() |
|
|
|
public App() |
|
|
|
{ |
|
|
|
{ |
|
|
|
var cmdArgs = Environment.GetCommandLineArgs().Skip(1); |
|
|
|
var cmdArgs = Environment.GetCommandLineArgs().Skip(1); |
|
|
|
|
|
|
|
var allowMultipleInstance = MiscSettingsInstance.Current.LoadMiscSettings().AllowMultipleInstances; |
|
|
|
App.CommandLineArguments = new CommandLineArguments(cmdArgs); |
|
|
|
App.CommandLineArguments = new CommandLineArguments(cmdArgs); |
|
|
|
if (App.CommandLineArguments.SingleInstance ?? true) { |
|
|
|
if ((App.CommandLineArguments.SingleInstance ?? true) && (!allowMultipleInstance)) { |
|
|
|
cmdArgs = cmdArgs.Select(FullyQualifyPath); |
|
|
|
cmdArgs = cmdArgs.Select(FullyQualifyPath); |
|
|
|
string message = string.Join(Environment.NewLine, cmdArgs); |
|
|
|
string message = string.Join(Environment.NewLine, cmdArgs); |
|
|
|
if (SendToPreviousInstance("ILSpy:\r\n" + message, !App.CommandLineArguments.NoActivate)) { |
|
|
|
if (SendToPreviousInstance("ILSpy:\r\n" + message, !App.CommandLineArguments.NoActivate)) { |
|
|
|