Show messagebox when application is already running

This commit is contained in:
Stone_Red
2023-11-20 23:13:36 +01:00
parent 2331544a80
commit 1e7f7ebb01
+1
View File
@@ -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();
}