summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/game_list.cpp
diff options
context:
space:
mode:
authorarchshift <gh@archshift.com>2015-09-07 08:51:57 +0200
committerarchshift <gh@archshift.com>2015-10-02 04:39:15 +0200
commit0fae76c741b84cfe6d31a9079b818866778dfa31 (patch)
tree2a6002949976468f137ccb92913f4d0377218c58 /src/citra_qt/game_list.cpp
parentAdd menu item for selecting the game list folder (diff)
downloadyuzu-0fae76c741b84cfe6d31a9079b818866778dfa31.tar
yuzu-0fae76c741b84cfe6d31a9079b818866778dfa31.tar.gz
yuzu-0fae76c741b84cfe6d31a9079b818866778dfa31.tar.bz2
yuzu-0fae76c741b84cfe6d31a9079b818866778dfa31.tar.lz
yuzu-0fae76c741b84cfe6d31a9079b818866778dfa31.tar.xz
yuzu-0fae76c741b84cfe6d31a9079b818866778dfa31.tar.zst
yuzu-0fae76c741b84cfe6d31a9079b818866778dfa31.zip
Diffstat (limited to '')
-rw-r--r--src/citra_qt/game_list.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp
index f90e05374..dade3c212 100644
--- a/src/citra_qt/game_list.cpp
+++ b/src/citra_qt/game_list.cpp
@@ -100,6 +100,23 @@ void GameList::PopulateAsync(const QString& dir_path, bool deep_scan)
current_worker = std::move(worker);
}
+void GameList::SaveInterfaceLayout(QSettings& settings)
+{
+ settings.beginGroup("UILayout");
+ settings.setValue("gameListHeaderState", tree_view->header()->saveState());
+ settings.endGroup();
+}
+
+void GameList::LoadInterfaceLayout(QSettings& settings)
+{
+ auto header = tree_view->header();
+ settings.beginGroup("UILayout");
+ header->restoreState(settings.value("gameListHeaderState").toByteArray());
+ settings.endGroup();
+
+ item_model->sort(header->sortIndicatorSection(), header->sortIndicatorOrder());
+}
+
void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, bool deep_scan)
{
const auto callback = [&](const std::string& directory,