mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 08:56:15 +02:00
Show messagebox when application is already running
This commit is contained in:
@@ -38,6 +38,7 @@ public partial class App : Application
|
|||||||
{
|
{
|
||||||
Setup(false);
|
Setup(false);
|
||||||
Logger.Log("Shutting down because other instance already running.", "Setup");
|
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
|
//Shutdown Application
|
||||||
Current.Shutdown();
|
Current.Shutdown();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user