From be259fc9b85c6452f06d928b2d50a39a6c925a3c Mon Sep 17 00:00:00 2001 From: PabloMK7 Date: Tue, 30 Dec 2025 21:13:24 +0100 Subject: [PATCH] qt: Do not refresh game directory while powered on (#1553) --- src/citra_qt/game_list.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp index 601bb2349..c275090dc 100644 --- a/src/citra_qt/game_list.cpp +++ b/src/citra_qt/game_list.cpp @@ -33,6 +33,7 @@ #include "citra_qt/uisettings.h" #include "common/logging/log.h" #include "common/settings.h" +#include "core/core.h" #include "core/file_sys/archive_extsavedata.h" #include "core/file_sys/archive_source_sd_savedata.h" #include "core/hle/service/am/am.h" @@ -1054,6 +1055,13 @@ const QStringList GameList::supported_file_extensions = { }; void GameList::RefreshGameDirectory() { + + // Do not scan directories when the system is powered on, it will be + // repopulated on shutdown anyways. + if (Core::System::GetInstance().IsPoweredOn()) { + return; + } + if (!UISettings::values.game_dirs.isEmpty() && current_worker != nullptr) { LOG_INFO(Frontend, "Change detected in the applications directory. Reloading game list."); PopulateAsync(UISettings::values.game_dirs);