feat(ui): add Quit to File menu; hide Wallet item when no wallet is open

- File → Esci (separator + Quit at the bottom) calls IClassicDesktopStyleApplicationLifetime.Shutdown()
- Wallet menu item and mobile button now use IsVisible instead of IsEnabled:
  they disappear entirely on the wizard/setup screen and reappear once a
  wallet is open, avoiding a confusing greyed-out entry
This commit is contained in:
2026-06-21 22:34:54 +02:00
parent affeaccae8
commit c0193ae440
3 changed files with 11 additions and 2 deletions
@@ -69,6 +69,12 @@ public partial class MainWindowViewModel
[RelayCommand]
private void OpenHelp() => IsHelpOpen = true;
[RelayCommand]
private static void QuitApp() =>
(Avalonia.Application.Current?.ApplicationLifetime
as Avalonia.Controls.ApplicationLifetimes.IClassicDesktopStyleApplicationLifetime)
?.Shutdown();
[RelayCommand]
private void CloseHelp() { IsHelpOpen = false; ResetDonate(); }
}