summaryrefslogtreecommitdiffstats
path: root/src/citra_qt
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2016-04-30 01:40:54 +0200
committerwwylele <wwylele@gmail.com>2016-05-04 12:02:49 +0200
commit0176e2786fc7a042e06abb2d6ce8a3eb95e96e28 (patch)
treedb11089f4597bccde14fd0cf1206eed6d0150435 /src/citra_qt
parentadd icon & title to game list (diff)
downloadyuzu-0176e2786fc7a042e06abb2d6ce8a3eb95e96e28.tar
yuzu-0176e2786fc7a042e06abb2d6ce8a3eb95e96e28.tar.gz
yuzu-0176e2786fc7a042e06abb2d6ce8a3eb95e96e28.tar.bz2
yuzu-0176e2786fc7a042e06abb2d6ce8a3eb95e96e28.tar.lz
yuzu-0176e2786fc7a042e06abb2d6ce8a3eb95e96e28.tar.xz
yuzu-0176e2786fc7a042e06abb2d6ce8a3eb95e96e28.tar.zst
yuzu-0176e2786fc7a042e06abb2d6ce8a3eb95e96e28.zip
Diffstat (limited to 'src/citra_qt')
-rw-r--r--src/citra_qt/game_list.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp
index 32339e6a6..d4ac9c96e 100644
--- a/src/citra_qt/game_list.cpp
+++ b/src/citra_qt/game_list.cpp
@@ -109,7 +109,11 @@ void GameList::SaveInterfaceLayout()
void GameList::LoadInterfaceLayout()
{
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());
}