Explorar o código

make the name column larger as default

wwylele %!s(int64=10) %!d(string=hai) anos
pai
achega
0176e2786f
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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());
 }