tpreferences: ensure all descriptions are shown
This commit is contained in:
parent
847ee990a3
commit
2b65666823
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue