Skip to content

Commit

Permalink
Update loaded_account.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
GleammerRay committed May 20, 2023
1 parent 740fbca commit b4689bf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/passy_data/loaded_account.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> saveSettings() => _settings.save();
void saveSettingsSync() => _settings.saveSync();

Expand Down

0 comments on commit b4689bf

Please sign in to comment.