Commit 616bda0d authored by Paweł Wegner's avatar Paweł Wegner

cloudbrowser: save on thread.

parent a07a9e13
......@@ -178,10 +178,12 @@ void CloudContext::saveCachedDirectories() {
}
void CloudContext::save() {
std::lock_guard<std::mutex> lock(mutex_);
QSettings settings;
settings.setValue("providers", user_provider_model_.dump());
saveCachedDirectories();
thread_pool_->schedule([this] {
std::lock_guard<std::mutex> lock(mutex_);
QSettings settings;
settings.setValue("providers", user_provider_model_.dump());
saveCachedDirectories();
});
}
QStringList CloudContext::providers() const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment