Remove unnecessary viewmodel
DELETE
WalletWasabi.Fluent/ViewModels/Wallets/MusicControlsViewModel.cs
-using ReactiveUI;
-using System.Reactive.Disposables;
-
-namespace WalletWasabi.Fluent.ViewModels.Wallets;
-
-public partial class MusicControlsViewModel : ViewModelBase
-{
- [AutoNotify(SetterModifier = AccessModifier.Private)] private bool _isActive;
- [AutoNotify] private WalletViewModel? _currentWallet;
-
- public MusicControlsViewModel()
- {
- this.WhenAnyValue(x => x.CurrentWallet.IsWalletBalanceZero)
- .Subscribe(x => SetIsActive(CurrentWallet));
- }
-
- public IDisposable SetWallet(WalletViewModel wallet)
- {
- CurrentWallet = wallet;
-
- SetIsActive(wallet);
-
- return new CompositeDisposable(
- Disposable.Create(() => IsActive = false));
- }
-
- private void SetIsActive(WalletViewModel wallet)
- {
- IsActive = !(wallet.Wallet.KeyManager.IsWatchOnly || wallet.Wallet.KeyManager.IsHardwareWallet || wallet.IsWalletBalanceZero);
- }
-}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/WalletViewModel.cs
@@ -238,8 +238,6 @@ public partial class WalletViewModel : WalletViewModelBase
{
base.OnNavigatedTo(isInHistory, disposables);
- disposables.Add(MainViewModel.Instance.MusicControls.SetWallet(this));
-
foreach (var tile in _tiles)
{
tile.Activate(disposables);

Remove unnecessary viewmodel