UI: Add options to hide extra columns (#9093)

UI change that allows the user to hide the size and or file types columns
This commit is contained in:
Piplup
2022-11-04 06:30:39 +00:00
committed by GitHub
parent 38e4382f53
commit ece22fcbc7
5 changed files with 31 additions and 1 deletions

View File

@ -788,6 +788,8 @@ void GameList::PopulateAsync(QVector<UISettings::GameDir>& game_dirs) {
// Update the columns in case UISettings has changed
tree_view->setColumnHidden(COLUMN_ADD_ONS, !UISettings::values.show_add_ons);
tree_view->setColumnHidden(COLUMN_COMPATIBILITY, !UISettings::values.show_compat);
tree_view->setColumnHidden(COLUMN_FILE_TYPE, !UISettings::values.show_types);
tree_view->setColumnHidden(COLUMN_SIZE, !UISettings::values.show_size);
// Delete any rows that might already exist if we're repopulating
item_model->removeRows(0, item_model->rowCount());