From 24179dfb1b3b0028f80b108d4fa2a7c7b384f9c8 Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Thu, 27 May 2021 20:14:19 +0200 Subject: [PATCH] forgot to return, smh --- EZPPClient Installer/MainWindow.xaml.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/EZPPClient Installer/MainWindow.xaml.cs b/EZPPClient Installer/MainWindow.xaml.cs index 92f536b..c918af3 100644 --- a/EZPPClient Installer/MainWindow.xaml.cs +++ b/EZPPClient Installer/MainWindow.xaml.cs @@ -38,7 +38,11 @@ namespace EZPPClient_Installer { var alreadyRunning = System.Diagnostics.Process.GetProcessesByName(System.IO.Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetEntryAssembly().Location)).Count() > 1; if (alreadyRunning) + { this.Close(); + return; + } + Instance = this; InitializeComponent(); Init();