| 36 | } |
| 37 | |
| 38 | void WidgetSettingGroup::Refresh(RefreshAreas refresh_areas) { |
| 39 | (void)refresh_areas; |
| 40 | |
| 41 | const SettingDependenceMode enabled = ::CheckDependence(this->meta, this->data_set); |
| 42 | |
| 43 | this->item->setHidden(enabled == SETTING_DEPENDENCE_HIDE); |
| 44 | this->item->setDisabled(enabled != SETTING_DEPENDENCE_ENABLE); |
| 45 | this->setEnabled(enabled == SETTING_DEPENDENCE_ENABLE); |
| 46 | } |
no test coverage detected