mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
Qt/GameList: Sort by title by default
This commit is contained in:
parent
c51c044142
commit
ddcc3451b1
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ void GameList::MakeListView()
|
||||||
connect(hor_header, &QHeaderView::sectionMoved, this, &GameList::OnHeaderViewChanged);
|
connect(hor_header, &QHeaderView::sectionMoved, this, &GameList::OnHeaderViewChanged);
|
||||||
|
|
||||||
hor_header->setSectionsMovable(true);
|
hor_header->setSectionsMovable(true);
|
||||||
|
|
||||||
|
if (!Settings::GetQSettings().contains(QStringLiteral("tableheader/state")))
|
||||||
|
m_list->sortByColumn(GameListModel::COL_TITLE, Qt::AscendingOrder);
|
||||||
|
|
||||||
hor_header->restoreState(
|
hor_header->restoreState(
|
||||||
Settings::GetQSettings().value(QStringLiteral("tableheader/state")).toByteArray());
|
Settings::GetQSettings().value(QStringLiteral("tableheader/state")).toByteArray());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue