Fix parameters not updating on non active tabs (#5400)

This commit is contained in:
yw4z 2024-05-19 18:52:34 +03:00 committed by GitHub
parent ac423ce162
commit 3f83d68e0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1172,8 +1172,10 @@ void Tab::load_config(const DynamicPrintConfig& config)
// Reload current $self->{config} (aka $self->{presets}->edited_preset->config) into the UI fields. // Reload current $self->{config} (aka $self->{presets}->edited_preset->config) into the UI fields.
void Tab::reload_config() void Tab::reload_config()
{ {
if (m_active_page) //if (m_active_page)
m_active_page->reload_config(); // m_active_page->reload_config();
for (auto page : m_pages)
page->reload_config();
} }
void Tab::update_mode() void Tab::update_mode()