update list after save
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Receive/AddressLabelEditViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Receive/AddressLabelEditViewModel.cs
@@ -11,13 +11,14 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Receive
{
[AutoNotify] private ObservableCollection<string> _labels;
- public AddressLabelEditViewModel(HdPubKey hdPubKey, KeyManager keyManager)
+ public AddressLabelEditViewModel(ReceiveAddressesViewModel owner, HdPubKey hdPubKey, KeyManager keyManager)
{
_labels = new(hdPubKey.Label);
NextCommand = ReactiveCommand.Create(() =>
{
hdPubKey.SetLabel(new SmartLabel(Labels), kmToFile: keyManager);
+ owner.InitializeAddresses();
Navigate().Back();
});
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveAddressesViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Receive/ReceiveAddressesViewModel.cs
@@ -5,7 +5,6 @@ using System.Linq;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Threading.Tasks;
-using System.Windows.Input;
using Avalonia;
using NBitcoin;
using ReactiveUI;
@@ -94,7 +93,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Receive
public void NavigateToAddressEdit(HdPubKey hdPubKey, KeyManager keyManager)
{
- Navigate(NavigationTarget.CompactDialogScreen).To(new AddressLabelEditViewModel(hdPubKey, keyManager));
+ Navigate(NavigationTarget.CompactDialogScreen).To(new AddressLabelEditViewModel(this, hdPubKey, keyManager));
}
}
}

update list after save