Adds force sync UI button. Added missing code for previous PR (#13757)

This commit is contained in:
ExPikaPaka
2026-05-20 13:25:51 +02:00
committed by GitHub
parent 62d4344e59
commit 19eb9e634f
2 changed files with 29 additions and 3 deletions

View File

@@ -5849,10 +5849,17 @@ void GUI_App::reload_settings()
load_pending_vendors();
preset_bundle->load_user_presets(*app_config, user_presets, ForwardCompatibilitySubstitutionRule::Enable);
preset_bundle->save_user_presets(*app_config, get_delete_cache_presets());
if (is_main_thread_active())
if (is_main_thread_active()) {
mainframe->update_side_preset_ui();
else
CallAfter([this] { mainframe->update_side_preset_ui(); });
if (plater_)
plater_->sidebar().update_all_preset_comboboxes();
} else {
CallAfter([this] {
mainframe->update_side_preset_ui();
if (plater_)
plater_->sidebar().update_all_preset_comboboxes();
});
}
}
}