mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 12:17:54 -06:00
fix an issue that flow rate was not visible sometimes in object view
This commit is contained in:
parent
cbede8882c
commit
cbbfc57f0f
1 changed files with 5 additions and 4 deletions
|
@ -598,13 +598,14 @@ 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 (cur_tab)
|
||||
cur_tab->toggle_line("print_flow_ratio", false);
|
||||
if (tab_print)
|
||||
tab_print->toggle_line("print_flow_ratio", false);
|
||||
}
|
||||
else {
|
||||
if (cur_tab)
|
||||
cur_tab->toggle_line("print_flow_ratio", false);
|
||||
if (tab_print)
|
||||
tab_print->toggle_line("print_flow_ratio", false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue