mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-29 21:55:58 +00:00
possible macos ipad delete fix
This commit is contained in:
parent
252115e12c
commit
133e8c388c
1 changed files with 13 additions and 3 deletions
|
@ -45,9 +45,19 @@ class _ForgotPasswordDesktopViewState
|
|||
if (Platform.isWindows || Platform.isLinux) {
|
||||
await appRoot.delete(recursive: true);
|
||||
} else {
|
||||
appRoot
|
||||
.listSync()
|
||||
.forEach((element) => element.deleteSync(recursive: true));
|
||||
// macos in ipad mode
|
||||
final xmrDir = Directory("${appRoot.path}/wallets");
|
||||
if (xmrDir.existsSync()) {
|
||||
await xmrDir.delete(recursive: true);
|
||||
}
|
||||
final epicDir = Directory("${appRoot.path}/epiccash");
|
||||
if (epicDir.existsSync()) {
|
||||
await epicDir.delete(recursive: true);
|
||||
}
|
||||
await (await StackFileSystem.applicationHiveDirectory())
|
||||
.delete(recursive: true);
|
||||
await (await StackFileSystem.applicationIsarDirectory())
|
||||
.delete(recursive: true);
|
||||
}
|
||||
|
||||
await DB.instance.init();
|
||||
|
|
Loading…
Reference in a new issue