Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-225-pin-timeout

This commit is contained in:
Godwin Asuquo
2022-12-09 19:42:36 +01:00
3 changed files with 88 additions and 42 deletions
@@ -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;