mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
fix sparrow export file extension to be always mv.db
This commit is contained in:
parent
ff90a2c3e6
commit
b25297e8b9
1 changed files with 1 additions and 9 deletions
|
@ -60,15 +60,7 @@ public class Sparrow implements WalletImport, WalletExport {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getExportFileExtension(Wallet wallet) {
|
public String getExportFileExtension(Wallet wallet) {
|
||||||
try {
|
return PersistenceType.DB.getExtension();
|
||||||
Storage storage = AppServices.get().getOpenWallets().get(wallet);
|
|
||||||
Wallet exportedWallet = !wallet.isMasterWallet() ? wallet.getMasterWallet() : wallet;
|
|
||||||
return !exportedWallet.getChildWallets().isEmpty() ? PersistenceType.DB.getExtension() : (storage.isEncrypted() ? "" : PersistenceType.JSON.getExtension());
|
|
||||||
} catch(IOException e) {
|
|
||||||
//ignore
|
|
||||||
}
|
|
||||||
|
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue