Parcourir la source

make the name column larger as default

wwylele il y a 10 ans
Parent
commit
0176e2786f
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/citra_qt/game_list.cpp

+ 5 - 1
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());
 }