remove print_flow_ratio from profiles and hide it from process setting. It should be only displayed for parts

This commit is contained in:
SoftFever 2023-11-16 19:07:40 +08:00
parent e8ac1575e7
commit 565732a027
6 changed files with 9 additions and 5 deletions

View file

@ -591,6 +591,15 @@ void ParamsPanel::set_active_tab(wxPanel* tab)
wxString title = cur_tab->type() == Preset::TYPE_FILAMENT ? _L("Filament settings") : _L("Printer settings");
dialog->SetTitle(title);
}
auto tab_print = dynamic_cast<Tab *>(m_tab_print);
if (cur_tab == m_tab_print) {
if (tab_print)
tab_print->toggle_line("print_flow_ratio", false);
} else {
if (tab_print)
tab_print->toggle_line("print_flow_ratio", false);
}
}
bool ParamsPanel::is_active_and_shown_tab(wxPanel* tab)