mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
rename background sync cache file (#2129)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user