mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 19:26:37 +00:00
ios on macos password reset deletion fix
This commit is contained in:
parent
a236d72846
commit
b431ac89a6
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
@ -41,7 +42,12 @@ class _ForgotPasswordDesktopViewState
|
|||
|
||||
try {
|
||||
await Hive.close();
|
||||
await appRoot.delete(recursive: true);
|
||||
if (Platform.isWindows || Platform.isLinux) {
|
||||
await appRoot.delete(recursive: true);
|
||||
} else {
|
||||
appRoot.listSync().forEach((element) => element.deleteSync());
|
||||
}
|
||||
|
||||
await DB.instance.init();
|
||||
} catch (e, s) {
|
||||
Logging.instance.log(
|
||||
|
|
Loading…
Reference in a new issue