From b4689bf6e06556423eedc76b7e28b99ade3b61de Mon Sep 17 00:00:00 2001 From: gleam <101527589+GleammerRay@users.noreply.github.com> Date: Sat, 20 May 2023 14:48:13 +0100 Subject: [PATCH] Update loaded_account.dart --- lib/passy_data/loaded_account.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/passy_data/loaded_account.dart b/lib/passy_data/loaded_account.dart index 82b9907d..6ad16f2e 100644 --- a/lib/passy_data/loaded_account.dart +++ b/lib/passy_data/loaded_account.dart @@ -322,7 +322,11 @@ class LoadedAccount { set protectScreen(bool value) => _settings.value.protectScreen = value; bool get autoScreenLock => _settings.value.autoScreenLock; set autoScreenLock(bool value) => _settings.value.autoScreenLock = value; - bool get isRSAKeypairLoaded => _settings.value.rsaKeypair != null; + bool get isRSAKeypairLoaded { + _settings.reloadSync(); + return _settings.value.rsaKeypair != null; + } + Future saveSettings() => _settings.save(); void saveSettingsSync() => _settings.saveSync();