tpreferences: ensure all descriptions are shown

This commit is contained in:
Charles Dang 2016-02-23 08:43:12 +11:00
parent 847ee990a3
commit 2b65666823

View file

@ -851,7 +851,9 @@ void tpreferences::on_advanced_prefs_list_select(tlistbox& list, twindow& window
// Add more options here as needed
}
if(selected_type != ADVANCED_PREF_TYPE::TOGGLE && selected_type != ADVANCED_PREF_TYPE::SPECIAL) {
const bool has_description = !adv_preferences_cfg_[selected_row]["description"].empty();
if(has_description && selected_type != ADVANCED_PREF_TYPE::SPECIAL) {
find_widget<twidget>(get_advanced_row_grid(list, selected_row), "prefs_setter_grid", false)
.set_visible(tcontrol::tvisible::visible);
}