mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: object table setting toggle line
Change-Id: I77f40d5563ca22d292ffa3ace67284766a4fa87e
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user