mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 02:32:43 +02:00
Improve logging, forgotten commit
This commit is contained in:
parent
b540c426c1
commit
06d7b89455
1 changed files with 3 additions and 1 deletions
|
@ -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.";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue