Skip to content

Commit

Permalink
tpreferences: ensure all descriptions are shown
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Feb 22, 2016
1 parent 847ee99 commit 2b65666
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/dialogs/preferences_dialog.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2b65666

Please sign in to comment.