fix: checkStateChanged

This commit is contained in:
collecting
2025-10-07 06:51:58 +00:00
parent 944bfc3918
commit 2a53da7b16

View File

@@ -708,7 +708,7 @@ void Widget::SetupComponent(const QString& label, std::function<void()>& load_fu
restore_func();
}
};
connect(checkbox, &QCheckBox::stateChanged, reset);
connect(checkbox, &QCheckBox::checkStateChanged, reset);
reset(checkbox->checkState());
}
}