rename background sync cache file (#2129)

This commit is contained in:
cyan
2025-03-28 01:08:43 +02:00
committed by GitHub
parent 66d6fd478b
commit 16b180add0
+4
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) {