summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/GameList/GameListModel.cpp
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-05-27 04:31:32 +0200
committerGitHub <noreply@github.com>2018-05-27 04:31:32 +0200
commit7b07424885fa2a71f8a08e1d86e7fb65dfb815be (patch)
tree1205defdb4d458261012b98df8ab68a02d0f5c4d /Source/Core/DolphinQt2/GameList/GameListModel.cpp
parent0c2538f17f49772e6573939f85118aa8384a8ac4 (diff)
parentfd651cf5e6c20b905012a9f266e90e3adace7683 (diff)
Merge pull request #6975 from JosJuice/qt-fast-gamelist
DolphinQt2: Show cached games before checking whether they exist on disk
Diffstat (limited to 'Source/Core/DolphinQt2/GameList/GameListModel.cpp')
-rw-r--r--Source/Core/DolphinQt2/GameList/GameListModel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt2/GameList/GameListModel.cpp b/Source/Core/DolphinQt2/GameList/GameListModel.cpp
index e57ac80f77..7f26c87435 100644
--- a/Source/Core/DolphinQt2/GameList/GameListModel.cpp
+++ b/Source/Core/DolphinQt2/GameList/GameListModel.cpp
@@ -18,8 +18,7 @@ const QSize GAMECUBE_BANNER_SIZE(96, 32);
GameListModel::GameListModel(QObject* parent) : QAbstractTableModel(parent)
{
connect(&m_tracker, &GameTracker::GameLoaded, this, &GameListModel::UpdateGame);
- connect(&m_tracker, &GameTracker::GameRemoved, this,
- [this](const QString& path) { RemoveGame(path.toStdString()); });
+ connect(&m_tracker, &GameTracker::GameRemoved, this, &GameListModel::RemoveGame);
connect(&Settings::Instance(), &Settings::PathAdded, &m_tracker, &GameTracker::AddDirectory);
connect(&Settings::Instance(), &Settings::PathRemoved, &m_tracker, &GameTracker::RemoveDirectory);
connect(&Settings::Instance(), &Settings::PathReloadRequested, &m_tracker,
@@ -28,6 +27,8 @@ GameListModel::GameListModel(QObject* parent) : QAbstractTableModel(parent)
for (const QString& dir : Settings::Instance().GetPaths())
m_tracker.AddDirectory(dir);
+ m_tracker.Start();
+
connect(&Settings::Instance(), &Settings::ThemeChanged, [this] {
// Tell the view to repaint. The signal 'dataChanged' also seems like it would work here, but
// unfortunately it won't cause a repaint until the view is focused.