feat(ui): persist last server and split connection status text
- AppConfig stores LastServerHost/Port/UseSsl; restored on next launch so the wallet reconnects to the last-used server instead of defaulting to the first bootstrap entry - Added ConnectionStatusShort for the status bar (short label only); ConnectionStatus retains the full "Connesso a ip:porta" shown in the server settings overlay
This commit is contained in:
@@ -15,6 +15,11 @@ public sealed class AppConfig
|
||||
/// <summary>Display unit for amounts (see <see cref="Wallet.CoinAmount.Units"/>).</summary>
|
||||
public string Unit { get; set; } = "PLM";
|
||||
|
||||
/// <summary>Last successfully connected server, persisted across sessions.</summary>
|
||||
public string? LastServerHost { get; set; }
|
||||
public int? LastServerPort { get; set; }
|
||||
public bool LastServerUseSsl { get; set; } = true;
|
||||
|
||||
private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true };
|
||||
|
||||
public static AppConfig Load(string? path = null)
|
||||
|
||||
Reference in New Issue
Block a user