mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
FIX: Remove quick actions if storage is encrypted
This commit is contained in:
parent
424dc29afc
commit
f4b2ffaa0e
@ -302,8 +302,15 @@ export class AppStorage {
|
||||
await this.saveToDisk();
|
||||
};
|
||||
await WatchConnectivity.shared.sendWalletsToWatch();
|
||||
DeviceQuickActions.setWallets(this.wallets);
|
||||
DeviceQuickActions.setQuickActions();
|
||||
|
||||
const isStorageEncrypted = await this.storageIsEncrypted;
|
||||
if (isStorageEncrypted) {
|
||||
DeviceQuickActions.clearShortcutItems();
|
||||
DeviceQuickActions.removeAllWallets();
|
||||
} else {
|
||||
DeviceQuickActions.setWallets(this.wallets);
|
||||
DeviceQuickActions.setQuickActions();
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
return false; // failed loading data or loading/decryptin data
|
||||
|
Loading…
Reference in New Issue
Block a user