clear stacks
MODIFY
WalletWasabi.Fluent.Desktop/Program.cs
WalletWasabi.Fluent.Desktop/Program.cs
@@ -9,8 +9,8 @@ using System.Runtime.InteropServices;
using System.Threading.Tasks;
using WalletWasabi.Fluent.CrashReport;
using WalletWasabi.Fluent.Helpers;
+using WalletWasabi.Fluent.ViewModels;
using WalletWasabi.Gui;
-using WalletWasabi.Gui.ViewModels;
using WalletWasabi.Helpers;
using WalletWasabi.Logging;
using WalletWasabi.Services;
@@ -163,11 +163,8 @@ namespace WalletWasabi.Fluent.Desktop
/// </summary>
private static async Task TerminateApplicationAsync()
{
- var mainViewModel = MainWindowViewModel.Instance;
- if (mainViewModel is { })
- {
- mainViewModel.Dispose();
- }
+ var mainViewModel = MainViewModel.Instance;
+ mainViewModel?.ClearStacks();
if (Global is { } global)
{

MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -121,6 +121,13 @@ namespace WalletWasabi.Fluent.ViewModels
private Network Network { get; }
+ public void ClearStacks()
+ {
+ MainScreen.Clear();
+ DialogScreen.Clear();
+ FullScreen.Clear();
+ }
+
public void Initialize()
{
StatusBar.Initialize(_global.Nodes.ConnectedNodes);

clear stacks