From beb731054965bf33937e8980eb8d7b3f2add495a Mon Sep 17 00:00:00 2001 From: thecozies <79979276+thecozies@users.noreply.github.com> Date: Tue, 23 Sep 2025 08:39:58 -0500 Subject: [PATCH] call change callbacks when reverting temp config + report value updates for render --- librecomp/src/config.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/librecomp/src/config.cpp b/librecomp/src/config.cpp index f86cde1..070e988 100644 --- a/librecomp/src/config.cpp +++ b/librecomp/src/config.cpp @@ -547,8 +547,16 @@ void Config::revert_temp_config() { modified_options.clear(); for (const auto& option : schema.options) { - temp_storage.value_map[option.id] = get_option_value(option.id); + auto temp_value = get_temp_option_value(option.id); + auto original_value = get_option_value(option.id); + temp_storage.value_map[option.id] = original_value; + try_call_option_change_callback(option.id, original_value, temp_value, OptionChangeContext::Temporary); } + + for (size_t option_index = 0; option_index < schema.options.size(); option_index++) { + report_config_option_update(option_index, ConfigOptionUpdateType::Value); + } + derive_all_config_option_dependencies(); }