mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-04-27 21:45:09 -06:00
qt: Do not refresh game directory while powered on (#1553)
This commit is contained in:
parent
e035bd3a21
commit
be259fc9b8
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user