configuration: Use paired settings
This commit is contained in:
parent
7f708e8d77
commit
9de50d6194
2 changed files with 6 additions and 12 deletions
|
@ -345,6 +345,10 @@ void Widget::SetupComponent(const QString& label, std::function<void()>& load_fu
|
|||
QLayout* layout = new QHBoxLayout(this);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
if (other_setting == nullptr) {
|
||||
other_setting = setting.PairedSetting();
|
||||
}
|
||||
|
||||
const bool require_checkbox =
|
||||
other_setting != nullptr && other_setting->TypeId() == typeid(bool);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue