From af8eabbc3aa1283d5c03541c8db7ae172f6cdf1b Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Sun, 2 Oct 2022 15:07:21 +0200 Subject: [PATCH] fix: sort grid view by last played Signed-off-by: Sefa Eyeoglu --- launcher/ui/instanceview/InstanceView.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/launcher/ui/instanceview/InstanceView.cpp b/launcher/ui/instanceview/InstanceView.cpp index 87e5c7f3b..e4e66aee5 100644 --- a/launcher/ui/instanceview/InstanceView.cpp +++ b/launcher/ui/instanceview/InstanceView.cpp @@ -67,6 +67,7 @@ void InstanceView::prepareModel() connect(m_tableProxy, &QAbstractItemModel::dataChanged, this, &InstanceView::dataChanged); m_gridProxy = new InstanceGridProxyModel(this); m_gridProxy->setSourceModel(m_instances); + m_gridProxy->sort(InstanceList::LastPlayedColumn, Qt::DescendingOrder); connect(m_tableProxy, &QAbstractItemModel::dataChanged, this, &InstanceView::dataChanged); }