refactoring

This commit is contained in:
zadam
2020-01-24 15:44:24 +01:00
parent 8651e47118
commit 4b66765cc1
12 changed files with 87 additions and 89 deletions

View File

@@ -48,10 +48,7 @@ async function setupProtectedSession(password) {
protectedSessionHolder.setProtectedSessionId(response.protectedSessionId);
protectedSessionHolder.touchProtectedSession();
await treeService.reload();
// it's important that tree has been already reloaded at this point since detail also uses tree cache (for book)
await appContext.reloadAllTabs();
appContext.trigger('protectedSessionStarted');
if (protectedSessionDeferred !== null) {
import("../dialogs/protected_session.js").then(dialog => dialog.close());