Improve left out OnOpen exception.
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinListViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinListViewModel.cs
@@ -377,12 +377,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
private void OnOpen()
{
- if (Disposables != null)
- {
- throw new Exception("CoinList was opened before last one closed.");
- }
-
- Disposables = new CompositeDisposable();
+ Disposables = Disposables is null ? new CompositeDisposable() : throw new NotSupportedException($"Cannot open {GetType().Name} before closing it.");
foreach (var sc in Global.WalletService.Coins.Where(sc => sc.Unspent))
{

Improve left out OnOpen exception.