From a5f1c2bcb043f4300c467db05981a531c0a9d9d0 Mon Sep 17 00:00:00 2001 From: rayman30 Date: Sun, 1 Feb 2026 19:05:29 +0100 Subject: [PATCH] [qt] fix refresh loop when storage is missing (#3434) Added a check to see if a folder actually exists before adding it to the watcher. fixes a nasty infinite refresh loop in the interface when a network drive or usb stick is disconnected but still in the config. Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3434 Reviewed-by: Lizzie Reviewed-by: crueter Reviewed-by: MaranBr Co-authored-by: rayman30 Co-committed-by: rayman30 --- src/yuzu/game_list_worker.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cpp index a694da8d84..131d6e6db4 100644 --- a/src/yuzu/game_list_worker.cpp +++ b/src/yuzu/game_list_worker.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project +// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later // SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project @@ -497,7 +497,10 @@ void GameListWorker::run() { DirEntryReady(game_list_dir); AddTitlesToGameList(game_list_dir); } else { - watch_list.append(QString::fromStdString(game_dir.path)); + const QString qpath = QString::fromStdString(game_dir.path); + if (QDir(qpath).exists()) { + watch_list.append(qpath); + } auto* const game_list_dir = new GameListDir(game_dir); DirEntryReady(game_list_dir); ScanFileSystem(ScanTarget::FillManualContentProvider, game_dir.path, game_dir.deep_scan,