mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-05-08 13:12:16 +00:00
rename background sync cache file (#2129)
This commit is contained in:
parent
66d6fd478b
commit
16b180add0
1 changed files with 4 additions and 0 deletions
|
@ -506,6 +506,7 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
|
|||
final currentCacheFile = File(renamedWalletPath);
|
||||
final currentKeysFile = File('$renamedWalletPath.keys');
|
||||
final currentAddressListFile = File('$renamedWalletPath.address.txt');
|
||||
final backgroundSyncFile = File('$renamedWalletPath.background');
|
||||
|
||||
final newWalletPath =
|
||||
await pathForWallet(name: newWalletName, type: type);
|
||||
|
@ -519,6 +520,9 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
|
|||
if (currentAddressListFile.existsSync()) {
|
||||
await currentAddressListFile.rename('$newWalletPath.address.txt');
|
||||
}
|
||||
if (backgroundSyncFile.existsSync()) {
|
||||
await backgroundSyncFile.rename('$newWalletPath.background');
|
||||
}
|
||||
|
||||
await backupWalletFiles(newWalletName);
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue