diff --git a/src/modules/launcher/PowerLauncher/App.xaml.cs b/src/modules/launcher/PowerLauncher/App.xaml.cs index 86d1da4532..a2c507a4ba 100644 --- a/src/modules/launcher/PowerLauncher/App.xaml.cs +++ b/src/modules/launcher/PowerLauncher/App.xaml.cs @@ -18,10 +18,12 @@ using Stopwatch = Wox.Infrastructure.Stopwatch; namespace PowerLauncher { + + public partial class App : IDisposable, ISingleInstanceApp { public static PublicAPIInstance API { get; private set; } - private const string Unique = "Wox_Unique_Application_Mutex"; + private const string Unique = "PowerLauncher_Unique_Application_Mutex"; private static bool _disposed; private Settings _settings; private MainViewModel _mainVM; @@ -34,10 +36,13 @@ namespace PowerLauncher { if (SingleInstance.InitializeAsFirstInstance(Unique)) { - using (var application = new App()) + using (new UI.App()) { - application.InitializeComponent(); - application.Run(); + using (var application = new App()) + { + application.InitializeComponent(); + application.Run(); + } } } }