FIX: object table setting toggle line

Change-Id: I77f40d5563ca22d292ffa3ace67284766a4fa87e
This commit is contained in:
chunmao.guo 2023-06-15 15:42:24 +08:00 committed by Lane.Wei
parent 4733a9a602
commit 8bc581d662
3 changed files with 32 additions and 9 deletions

View file

@ -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)