Skip to content

Commit

Permalink
Merge pull request microsoft#85 from microsoft/user/ryanbod/fix_catas…
Browse files Browse the repository at this point in the history
…trophic_failure

Fixing xaml catastrophic failure,
  • Loading branch information
ryanbodrug-microsoft authored Apr 9, 2020
2 parents b3b7f8b + b7d0455 commit 5c38b91
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/modules/launcher/PowerLauncher/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@

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;
Expand All @@ -34,10 +36,13 @@ public static void Main()
{
if (SingleInstance<App>.InitializeAsFirstInstance(Unique))
{
using (var application = new App())
using (new UI.App())
{
application.InitializeComponent();
application.Run();
using (var application = new App())
{
application.InitializeComponent();
application.Run();
}
}
}
}
Expand Down

0 comments on commit 5c38b91

Please sign in to comment.