Common/Config: Add a utility class to suppress config change callbacks.

This commit is contained in:
Jordan Woyak
2019-03-03 10:58:37 -06:00
parent 2a3c075330
commit bbc6bf5294
8 changed files with 42 additions and 1 deletions

View File

@ -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));