Skip to content
Snippets Groups Projects
Commit 0176e278 authored by wwylele's avatar wwylele
Browse files

make the name column larger as default

parent 5d5dd66d
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,11 @@ void GameList::SaveInterfaceLayout() ...@@ -109,7 +109,11 @@ void GameList::SaveInterfaceLayout()
void GameList::LoadInterfaceLayout() void GameList::LoadInterfaceLayout()
{ {
auto header = tree_view->header(); auto header = tree_view->header();
header->restoreState(UISettings::values.gamelist_header_state); if (!header->restoreState(UISettings::values.gamelist_header_state)) {
// We are using the name column to display icons and titles
// so make it as large as possible as default.
header->resizeSection(COLUMN_NAME, header->width());
}
item_model->sort(header->sortIndicatorSection(), header->sortIndicatorOrder()); item_model->sort(header->sortIndicatorSection(), header->sortIndicatorOrder());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment