rename background sync cache file ()

This commit is contained in:
cyan 2025-03-28 00:08:43 +01:00 committed by GitHub
parent 66d6fd478b
commit 16b180add0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {