Block only when MainViewModel is busy
MODIFY
WalletWasabi.Fluent/Helpers/NotificationHelpers.cs
WalletWasabi.Fluent/Helpers/NotificationHelpers.cs
@@ -44,7 +44,7 @@ public static class NotificationHelpers
return;
}
- if (!MainViewModel.Instance.IsMainContentEnabled)
+ if (MainViewModel.Instance.IsBusy)
{
return;
}

MODIFY
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
WalletWasabi.Fluent/ViewModels/MainViewModel.cs
@@ -163,6 +163,12 @@ public partial class MainViewModel : ViewModelBase
public static MainViewModel Instance { get; } = new();
+ public bool IsBusy =>
+ MainScreen.CurrentPage is { IsBusy: true } ||
+ DialogScreen.CurrentPage is { IsBusy: true } ||
+ FullScreen.CurrentPage is { IsBusy: true } ||
+ CompactDialogScreen.CurrentPage is { IsBusy: true };
+
public void ClearStacks()
{
MainScreen.Clear();

Block only when MainViewModel is busy