feat(app): version in window title and Help overlay
- csproj: add <Version>0.9.0</Version> as single source of truth - AppVersion reads Major.Minor.Build from the assembly; WindowTitle exposes "Palladium Wallet 0.9.0" bound to Window.Title - Menu Help → in-app overlay (same pattern as settings/server overlays) showing app name, version and a short description; backdrop tap and Esc close it - i18n: menu.help, help.title, help.info in all 6 languages
This commit is contained in:
@@ -73,6 +73,15 @@ public partial class MainWindowViewModel : ViewModelBase
|
||||
private Loc _loc = Loc.Instance;
|
||||
public Loc Loc => _loc;
|
||||
|
||||
/// <summary>Versione dell'app (da <Version> nel csproj), formato Major.Minor.Patch.</summary>
|
||||
public static string AppVersion =>
|
||||
typeof(MainWindowViewModel).Assembly.GetName().Version is { } v
|
||||
? $"{v.Major}.{v.Minor}.{v.Build}"
|
||||
: "";
|
||||
|
||||
/// <summary>Titolo della finestra con la versione, es. "Palladium Wallet 0.9.0".</summary>
|
||||
public string WindowTitle => $"Palladium Wallet {AppVersion}";
|
||||
|
||||
/// <summary>Unità corrente per il campo importo del pannello Invia.</summary>
|
||||
public string UnitLabel => _config.Unit;
|
||||
|
||||
@@ -309,6 +318,16 @@ public partial class MainWindowViewModel : ViewModelBase
|
||||
[RelayCommand]
|
||||
private void CloseSettings() => IsSettingsOpen = false;
|
||||
|
||||
/// <summary>Overlay informazioni sul software (menu Help).</summary>
|
||||
[ObservableProperty]
|
||||
private bool isHelpOpen;
|
||||
|
||||
[RelayCommand]
|
||||
private void OpenHelp() => IsHelpOpen = true;
|
||||
|
||||
[RelayCommand]
|
||||
private void CloseHelp() => IsHelpOpen = false;
|
||||
|
||||
[ObservableProperty]
|
||||
private string connectionStatus = Loc.Tr("conn.none");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user