various small fixes

This commit is contained in:
zadam
2019-09-08 11:25:57 +02:00
parent 90afb2a1ee
commit f3955bcbdc
8 changed files with 17 additions and 16 deletions

View File

@@ -27,7 +27,7 @@ function enterProtectedSession() {
// using deferred instead of promise because it allows resolving from outside
protectedSessionDeferred = dfd;
import("../dialogs/protected_session.js").then(protectedSessionDialog => protectedSessionDialog.show())
import("../dialogs/protected_session.js").then(dialog => dialog.show());
}
return dfd.promise();
@@ -51,7 +51,7 @@ async function setupProtectedSession(password) {
await noteDetailService.reloadAllTabs();
if (protectedSessionDeferred !== null) {
protectedSessionDialog.close();
import("../dialogs/protected_session.js").then(dialog => dialog.close());
protectedSessionDeferred.resolve(true);
protectedSessionDeferred = null;