From 1e7f7ebb017e2f948189d789134542c69e62039b Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Mon, 20 Nov 2023 23:13:36 +0100 Subject: [PATCH] Show messagebox when application is already running --- src/DesktopMagic/App.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DesktopMagic/App.xaml.cs b/src/DesktopMagic/App.xaml.cs index 8fb6c15..c8f9b72 100644 --- a/src/DesktopMagic/App.xaml.cs +++ b/src/DesktopMagic/App.xaml.cs @@ -38,6 +38,7 @@ public partial class App : Application { Setup(false); Logger.Log("Shutting down because other instance already running.", "Setup"); + _ = MessageBox.Show($"Another instance of {AppName} is already running.", "Error", MessageBoxButton.OK, MessageBoxImage.Error); //Shutdown Application Current.Shutdown(); }