summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-01-29 17:27:28 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-01-29 17:27:28 +0100
commit2e7d26bcc010f6ad1908461a34361b64f56d53be (patch)
treeb84ac35f460d7737a8316b664c3769fa71b50ec2 /src/Cache.cpp
parentBump mtxclient (diff)
downloadnheko-2e7d26bcc010f6ad1908461a34361b64f56d53be.tar.xz
Fix secrets not loading after registration
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp

index c15d2f4b..b55d53a6 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp
@@ -391,6 +391,7 @@ Cache::loadSecrets(std::vector<std::pair<std::string, bool>> toLoad) &QKeychain::ReadPasswordJob::finished, this, [this, name, toLoad, job](QKeychain::Job *) mutable { + nhlog::db()->debug("Finished reading '{}'", toLoad.begin()->first); const QString secret = job->textData(); if (job->error() && job->error() != QKeychain::Error::EntryNotFound) { nhlog::db()->error("Restoring secret '{}' failed ({}): {}", @@ -413,6 +414,7 @@ Cache::loadSecrets(std::vector<std::pair<std::string, bool>> toLoad) // You can't start a job from the finish signal of a job. QTimer::singleShot(0, this, [this, toLoad] { loadSecrets(toLoad); }); }); + nhlog::db()->debug("Reading '{}'", name_); job->start(); }