mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 03:04:25 +08:00
fix an issue that flow rate was not visible sometimes in object view
This commit is contained in:
parent
cbede8882c
commit
cbbfc57f0f
@ -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");
|
wxString title = cur_tab->type() == Preset::TYPE_FILAMENT ? _L("Filament settings") : _L("Printer settings");
|
||||||
dialog->SetTitle(title);
|
dialog->SetTitle(title);
|
||||||
}
|
}
|
||||||
|
auto tab_print = dynamic_cast<Tab*>(m_tab_print);
|
||||||
if (cur_tab == m_tab_print) {
|
if (cur_tab == m_tab_print) {
|
||||||
if (cur_tab)
|
if (tab_print)
|
||||||
cur_tab->toggle_line("print_flow_ratio", false);
|
tab_print->toggle_line("print_flow_ratio", false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (cur_tab)
|
if (tab_print)
|
||||||
cur_tab->toggle_line("print_flow_ratio", false);
|
tab_print->toggle_line("print_flow_ratio", false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user