mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-21 06:18:42 +02:00
- Fix reloading settings store
- Revert changes to backup_service.dart
This commit is contained in:
@@ -35,7 +35,7 @@ abstract class RestoreFromBackupViewModelBase with Store {
|
||||
try {
|
||||
state = IsExecutingState();
|
||||
|
||||
if (filePath?.isEmpty ?? true) {
|
||||
if (filePath.isEmpty) {
|
||||
state = FailureState('Backup file is not selected.');
|
||||
return;
|
||||
}
|
||||
@@ -48,8 +48,7 @@ abstract class RestoreFromBackupViewModelBase with Store {
|
||||
|
||||
final store = getIt.get<AppStore>();
|
||||
ReactionDisposer? reaction;
|
||||
// FIX-ME: SettingsStore reload
|
||||
// await store.settingsStore.reload(nodeSource: getIt.get<Box<Node>>());
|
||||
await store.settingsStore.reload(nodeSource: getIt.get<Box<Node>>());
|
||||
|
||||
reaction = autorun((_) {
|
||||
final wallet = store.wallet;
|
||||
|
||||
Reference in New Issue
Block a user