Improve logging, forgotten commit

This commit is contained in:
Dale Glass 2022-11-01 17:07:02 +01:00
parent b540c426c1
commit 06d7b89455

View file

@ -23,13 +23,15 @@
#include "SharedUtil.h"
#include "ThreadHelpers.h"
Q_LOGGING_CATEGORY(settings_interface, "settings.interface")
namespace Setting {
// This should only run as a post-routine in the QCoreApplication destructor
void cleanupSettingsSaveThread() {
auto globalManager = DependencyManager::get<Manager>();
Q_ASSERT(qApp && globalManager);
globalManager->forceSave();
globalManager->terminateThread();
qCDebug(shared) << "Settings thread stopped.";
}