Skip to content

Commit

Permalink
Fix browser window getting stuck in half-way state after closing it
Browse files Browse the repository at this point in the history
  • Loading branch information
tr4wzified committed Dec 22, 2024
1 parent e6677a5 commit bf09d50
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion Wabbajack.App.Wpf/Messages/ShowBrowserWindow.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using ReactiveUI;
using System;

namespace Wabbajack.Messages;

Expand Down
5 changes: 1 addition & 4 deletions Wabbajack.App.Wpf/ViewModels/BrowserWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,9 @@ private void Close()
Closed -= delegateMethod as EventHandler;
}
}
Activator.Deactivate();
//Activator.Deactivate();
}

// Cheating a bit with MVVM principles here
public BrowserWindow? View { get; set; }

public async Task RunWrapper(CancellationToken token)
{
await Run(token);
Expand Down
1 change: 1 addition & 0 deletions Wabbajack.App.Wpf/ViewModels/MainWindowVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public MainWindowVM(ILogger<MainWindowVM> logger, Client wjClient,
.DisposeWith(CompositeDisposable);

MessageBus.Current.Listen<ShowFloatingWindow>()
.ObserveOnGuiThread()
.Subscribe(m => HandleShowFloatingWindow(m.Screen))
.DisposeWith(CompositeDisposable);

Expand Down

0 comments on commit bf09d50

Please sign in to comment.