diff --git a/src/App/Localization/Loc.cs b/src/App/Localization/Loc.cs index de6eb77..51af199 100644 --- a/src/App/Localization/Loc.cs +++ b/src/App/Localization/Loc.cs @@ -75,8 +75,7 @@ public sealed class Loc ["wiz.data.usedefault"] = ["Usa il percorso predefinito", "Use the default path", "Usar la ruta predeterminada", "Utiliser le chemin par défaut", "Usar o caminho padrão", "Standardpfad verwenden"], ["wiz.data.choose"] = ["Scegli una cartella…", "Choose a folder…", "Elegir una carpeta…", "Choisir un dossier…", "Escolher uma pasta…", "Ordner wählen…"], ["wiz.choose.title"] = ["Scegli il wallet da aprire", "Choose the wallet to open", "Elige el wallet a abrir", "Choisissez le wallet à ouvrir", "Escolha a carteira a abrir", "Wallet zum Öffnen wählen"], - ["wiz.net"] = ["Rete:", "Network:", "Red:", "Réseau :", "Rede:", "Netzwerk:"], - ["wiz.open.btn"] = ["Apri il wallet esistente", "Open existing wallet", "Abrir wallet existente", "Ouvrir le wallet existant", "Abrir carteira existente", "Vorhandenes Wallet öffnen"], +["wiz.open.btn"] = ["Apri il wallet esistente", "Open existing wallet", "Abrir wallet existente", "Ouvrir le wallet existant", "Abrir carteira existente", "Vorhandenes Wallet öffnen"], ["wiz.new.btn"] = ["Crea un nuovo wallet", "Create a new wallet", "Crear nuevo wallet", "Créer un nouveau wallet", "Criar nova carteira", "Neues Wallet erstellen"], ["wiz.restore.btn"] = ["Ripristina da seed", "Restore from seed", "Restaurar desde semilla", "Restaurer depuis la graine", "Restaurar da semente", "Aus Seed wiederherstellen"], ["wiz.open.title"] = ["Apri il wallet", "Open the wallet", "Abrir el wallet", "Ouvrir le wallet", "Abrir a carteira", "Wallet öffnen"], diff --git a/src/App/ViewModels/MainWindowViewModel.Wizard.cs b/src/App/ViewModels/MainWindowViewModel.Wizard.cs index 595cb5c..1af35ff 100644 --- a/src/App/ViewModels/MainWindowViewModel.Wizard.cs +++ b/src/App/ViewModels/MainWindowViewModel.Wizard.cs @@ -341,7 +341,6 @@ public partial class MainWindowViewModel _walletLock?.Dispose(); _walletLock = walletLock; - SelectedNetwork = doc.Network; _doc = doc; _account = account; _walletPath = path; diff --git a/src/App/ViewModels/MainWindowViewModel.cs b/src/App/ViewModels/MainWindowViewModel.cs index 6855240..04c329a 100644 --- a/src/App/ViewModels/MainWindowViewModel.cs +++ b/src/App/ViewModels/MainWindowViewModel.cs @@ -101,13 +101,6 @@ public partial class MainWindowViewModel : ViewModelBase // ---- stato pannelli ---- - public string[] Networks { get; } = ["mainnet", "testnet", "regtest"]; - - [ObservableProperty] - private string selectedNetwork = "mainnet"; - - partial void OnSelectedNetworkChanged(string value) => RefreshSetupState(); - [ObservableProperty] [NotifyPropertyChangedFor(nameof(IsSetupVisible))] private bool isWalletOpen; @@ -130,7 +123,7 @@ public partial class MainWindowViewModel : ViewModelBase // ---- helpers ---- - private NetKind Net => System.Enum.Parse(SelectedNetwork, ignoreCase: true); + private NetKind Net => NetKind.Mainnet; private ChainProfile Profile => ChainProfiles.For(Net); private ServerRegistry Registry => new(Profile, AppPaths.ServersPath(Net)); diff --git a/src/App/Views/MainView.axaml b/src/App/Views/MainView.axaml index 1d11e37..d90e231 100644 --- a/src/App/Views/MainView.axaml +++ b/src/App/Views/MainView.axaml @@ -64,11 +64,6 @@ - - - -