configuration: Use paired settings

This commit is contained in:
lat9nq
2023-06-21 04:32:21 -04:00
parent 7f708e8d77
commit 9de50d6194
2 changed files with 6 additions and 12 deletions

View File

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