Fixed update of the field related to the "extruders_count" parameter after printer preset change
This commit is contained in:
parent
1c22d788aa
commit
e05080c53b
@ -2717,6 +2717,16 @@ void TabPrinter::update_pages()
|
|||||||
rebuild_page_tree();
|
rebuild_page_tree();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TabPrinter::reload_config()
|
||||||
|
{
|
||||||
|
Tab::reload_config();
|
||||||
|
|
||||||
|
// "extruders_count" doesn't update from the update_config(),
|
||||||
|
// so update it implicitly
|
||||||
|
if (m_active_page && m_active_page->title() == "General")
|
||||||
|
m_active_page->set_value("extruders_count", int(m_extruders_count));
|
||||||
|
}
|
||||||
|
|
||||||
void TabPrinter::activate_selected_page(std::function<void()> throw_if_canceled)
|
void TabPrinter::activate_selected_page(std::function<void()> throw_if_canceled)
|
||||||
{
|
{
|
||||||
Tab::activate_selected_page(throw_if_canceled);
|
Tab::activate_selected_page(throw_if_canceled);
|
||||||
|
@ -465,6 +465,7 @@ public:
|
|||||||
void build_print_host_upload_group(Page* page);
|
void build_print_host_upload_group(Page* page);
|
||||||
void build_fff();
|
void build_fff();
|
||||||
void build_sla();
|
void build_sla();
|
||||||
|
void reload_config() override;
|
||||||
void activate_selected_page(std::function<void()> throw_if_canceled) override;
|
void activate_selected_page(std::function<void()> throw_if_canceled) override;
|
||||||
void clear_pages() override;
|
void clear_pages() override;
|
||||||
void toggle_options() override;
|
void toggle_options() override;
|
||||||
|
Loading…
Reference in New Issue
Block a user