refactor(app): clear status bar during wizard steps

Remove the wizard-step status messages (welcome, password info,
seed instructions, etc.) — the XAML headings for each step already
communicate context. StatusMessage is now reserved for actionable
feedback (errors, sync progress, connection state).
This commit is contained in:
2026-06-12 16:16:34 +02:00
parent 658fcdbced
commit b00c5821f2
+11 -13
View File
@@ -649,9 +649,7 @@ public partial class MainWindowViewModel : ViewModelBase
SetupStep = StepStart; SetupStep = StepStart;
MnemonicInput = ConfirmMnemonicInput = PassphraseInput = PasswordInput = ConfirmPasswordInput = ""; MnemonicInput = ConfirmMnemonicInput = PassphraseInput = PasswordInput = ConfirmPasswordInput = "";
WalletFileExists = AppPaths.WalletFiles(Net).Count > 0; WalletFileExists = AppPaths.WalletFiles(Net).Count > 0;
StatusMessage = WalletFileExists StatusMessage = "";
? Loc.Tr("msg.welcome.existing")
: Loc.Tr("msg.welcome.new");
RefreshServers(); RefreshServers();
// Come Electrum: ci si connette al server già durante il setup, senza // Come Electrum: ci si connette al server già durante il setup, senza
// aspettare l'apertura di un wallet (la sync parte poi all'apertura). // aspettare l'apertura di un wallet (la sync parte poi all'apertura).
@@ -734,13 +732,13 @@ public partial class MainWindowViewModel : ViewModelBase
foreach (var path in files) foreach (var path in files)
WalletList.Add(new WalletFileEntry(Path.GetFileName(path), path)); WalletList.Add(new WalletFileEntry(Path.GetFileName(path), path));
SetupStep = StepChooseWallet; SetupStep = StepChooseWallet;
StatusMessage = Loc.Tr("msg.choose.wallet"); StatusMessage = "";
return; return;
} }
_pendingOpenPath = files.Count == 1 ? files[0] : AppPaths.DefaultWalletPath(Net); _pendingOpenPath = files.Count == 1 ? files[0] : AppPaths.DefaultWalletPath(Net);
PasswordInput = ""; PasswordInput = "";
SetupStep = StepOpen; SetupStep = StepOpen;
StatusMessage = Loc.Tr("msg.open.password"); StatusMessage = "";
} }
/// <summary>Sceglie quale wallet aprire dalla lista e passa alla password.</summary> /// <summary>Sceglie quale wallet aprire dalla lista e passa alla password.</summary>
@@ -752,7 +750,7 @@ public partial class MainWindowViewModel : ViewModelBase
_pendingOpenPath = entry.Path; _pendingOpenPath = entry.Path;
PasswordInput = ""; PasswordInput = "";
SetupStep = StepOpen; SetupStep = StepOpen;
StatusMessage = Loc.Tr("msg.open.password"); StatusMessage = "";
} }
[RelayCommand] [RelayCommand]
@@ -761,7 +759,7 @@ public partial class MainWindowViewModel : ViewModelBase
_isRestoreFlow = false; _isRestoreFlow = false;
MnemonicInput = Bip39.Generate(MnemonicLength.Twelve).ToString(); MnemonicInput = Bip39.Generate(MnemonicLength.Twelve).ToString();
SetupStep = StepShowSeed; SetupStep = StepShowSeed;
StatusMessage = Loc.Tr("msg.seed.write"); StatusMessage = "";
} }
[RelayCommand] [RelayCommand]
@@ -770,7 +768,7 @@ public partial class MainWindowViewModel : ViewModelBase
_isRestoreFlow = true; _isRestoreFlow = true;
MnemonicInput = ""; MnemonicInput = "";
SetupStep = StepWords; SetupStep = StepWords;
StatusMessage = Loc.Tr("msg.words.enter"); StatusMessage = "";
} }
[RelayCommand] [RelayCommand]
@@ -778,7 +776,7 @@ public partial class MainWindowViewModel : ViewModelBase
{ {
ConfirmMnemonicInput = ""; ConfirmMnemonicInput = "";
SetupStep = StepConfirmSeed; SetupStep = StepConfirmSeed;
StatusMessage = Loc.Tr("msg.seed.retype"); StatusMessage = "";
} }
[RelayCommand] [RelayCommand]
@@ -809,7 +807,7 @@ public partial class MainWindowViewModel : ViewModelBase
{ {
PassphraseInput = ""; PassphraseInput = "";
SetupStep = StepPassphrase; SetupStep = StepPassphrase;
StatusMessage = Loc.Tr("msg.passphrase.info"); StatusMessage = "";
} }
[RelayCommand] [RelayCommand]
@@ -818,7 +816,7 @@ public partial class MainWindowViewModel : ViewModelBase
PasswordInput = ConfirmPasswordInput = ""; PasswordInput = ConfirmPasswordInput = "";
EncryptWallet = true; EncryptWallet = true;
SetupStep = StepPassword; SetupStep = StepPassword;
StatusMessage = Loc.Tr("msg.password.info"); StatusMessage = "";
} }
[RelayCommand] [RelayCommand]
@@ -923,7 +921,7 @@ public partial class MainWindowViewModel : ViewModelBase
WalletFileExists = true; WalletFileExists = true;
PasswordInput = ""; PasswordInput = "";
SetupStep = StepOpen; SetupStep = StepOpen;
StatusMessage = $"Il wallet \"{Path.GetFileName(path)}\" è cifrato: inserisci la password e premi Apri."; StatusMessage = "";
} }
catch (Exception ex) catch (Exception ex)
{ {
@@ -938,7 +936,7 @@ public partial class MainWindowViewModel : ViewModelBase
if (IsWalletOpen) if (IsWalletOpen)
CloseWallet(); CloseWallet();
_pendingOpenPath = null; _pendingOpenPath = null;
StatusMessage = Loc.Tr("msg.welcome.new"); StatusMessage = "";
} }
private void OpenLoaded(WalletDocument doc, HdAccount account, string path, string? password) private void OpenLoaded(WalletDocument doc, HdAccount account, string path, string? password)