fixed double yubikey alert when opening files from storages

pull/1541/head
antelle 2020-05-31 22:28:38 +02:00
parent 83293d909e
commit 9e09f7b7e7
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 2 additions and 2 deletions

View File

@ -532,7 +532,7 @@ class AppModel {
params,
(err, file) => {
if (err) {
if (err.name === 'KdbxError') {
if (err.name === 'KdbxError' || err.userCanceled) {
return callback(err);
}
logger.info(
@ -558,7 +558,7 @@ class AppModel {
setTimeout(() => this.syncFile(file), 0);
callback(err);
} else {
if (err.name === 'KdbxError') {
if (err.name === 'KdbxError' || err.userCanceled) {
return callback(err);
}
logger.info(