Fix passphrase entry trigger

This commit is contained in:
Vishnu Mohandas 2020-11-01 13:46:22 +05:30
parent b908ffcfcf
commit 4d63dd4ea2

View file

@ -128,8 +128,8 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
page = EmailEntryPage();
} else {
// No key
if (Configuration.instance.getKey() == null) {
// Yet to decrypt the key
if (Configuration.instance.getKeyAttributes() != null) {
// Yet to set or decrypt the key
page = PassphraseReentryPage();
} else {
// Never had a key