mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 15:37:30 -06:00
FIX: object table setting toggle line
Change-Id: I77f40d5563ca22d292ffa3ace67284766a4fa87e
This commit is contained in:
parent
4733a9a602
commit
8bc581d662
3 changed files with 32 additions and 9 deletions
|
@ -793,8 +793,14 @@ bool ConfigOptionsGroup::update_visibility(ConfigOptionMode mode)
|
|||
int coef = 0;
|
||||
int hidden_row_cnt = 0;
|
||||
const int cols = m_grid_sizer->GetCols();
|
||||
Line * line = &m_lines.front();
|
||||
size_t line_opt_end = line->get_options().size();
|
||||
for (auto opt_mode : m_options_mode) {
|
||||
const bool show = opt_mode <= mode;
|
||||
const bool show = opt_mode <= mode && line->toggle_visible;
|
||||
if (--line_opt_end == 0) {
|
||||
++line;
|
||||
line_opt_end = line->get_options().size();
|
||||
}
|
||||
if (!show) {
|
||||
hidden_row_cnt++;
|
||||
for (int i = 0; i < cols; ++i)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue