refactor(app): replace AddressInfoWindow with in-app overlay

The address detail panel is now rendered as a modal overlay inside
MainWindow instead of a separate top-level Window, avoiding the
create/destroy cost of a dialog and working better under WSLg.

Backdrop tap and Esc both close the overlay.
This commit is contained in:
2026-06-12 08:16:39 +02:00
parent fe320584eb
commit cf6e2d7654
5 changed files with 89 additions and 75 deletions
+11
View File
@@ -249,6 +249,17 @@ public partial class MainWindowViewModel : ViewModelBase
[ObservableProperty]
private AddressRow? selectedAddressRow;
/// <summary>Dettaglio indirizzo mostrato nell'overlay in-app; null = nascosto.</summary>
[ObservableProperty]
private AddressInfo? addressInfo;
/// <summary>Apre l'overlay con i dati dell'indirizzo passato.</summary>
public void ShowAddressInfo(AddressRow row) =>
AddressInfo = new AddressInfo(Loc, row.Indirizzo, row.DerivPath, row.PubKey, row.PrivKey);
[RelayCommand]
private void CloseAddressInfo() => AddressInfo = null;
// ---- rubrica contatti ----
public ObservableCollection<ContactEntry> Contacts { get; } = [];