diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2019-03-03 10:58:37 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2019-03-03 17:35:22 -0600 |
| commit | bbc6bf5294f829d62ef61244c315c2886c54c790 (patch) | |
| tree | 05a576e2923dfc842bd8a38e17a1fd762618bd3b /Source/Core/Common/Logging/LogManager.cpp | |
| parent | 2a3c0753303a9f4cd79a92cd94b6a22298b516d6 (diff) | |
Common/Config: Add a utility class to suppress config change callbacks.
Diffstat (limited to 'Source/Core/Common/Logging/LogManager.cpp')
| -rw-r--r-- | Source/Core/Common/Logging/LogManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/Common/Logging/LogManager.cpp b/Source/Core/Common/Logging/LogManager.cpp index cd108b0f46..6efb4a39d0 100644 --- a/Source/Core/Common/Logging/LogManager.cpp +++ b/Source/Core/Common/Logging/LogManager.cpp @@ -173,6 +173,8 @@ LogManager::~LogManager() void LogManager::SaveSettings() { + Config::ConfigChangeCallbackGuard config_guard; + Config::SetBaseOrCurrent(LOGGER_WRITE_TO_FILE, IsListenerEnabled(LogListener::FILE_LISTENER)); Config::SetBaseOrCurrent(LOGGER_WRITE_TO_CONSOLE, IsListenerEnabled(LogListener::CONSOLE_LISTENER)); |
