mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-26 19:39:46 -04:00
fix(fs): race condition in save mirroring during config changes
Signed-off-by: Collecting <collecting@noreply.localhost>
This commit is contained in:
@@ -954,8 +954,13 @@ void GameList::DonePopulating(const QStringList& watch_list) {
|
||||
}
|
||||
}
|
||||
|
||||
LOG_INFO(Frontend, "Game List populated. Triggering Mirror Sync...");
|
||||
system.GetFileSystemController().GetSaveDataFactory().PerformStartupMirrorSync();
|
||||
// Only sync if we aren't rebuilding the UI and the game isn't running.
|
||||
if (main_window && !main_window->IsConfiguring() && !system.IsPoweredOn()) {
|
||||
LOG_INFO(Frontend, "Game List populated. Triggering Mirror Sync...");
|
||||
system.GetFileSystemController().GetSaveDataFactory().PerformStartupMirrorSync();
|
||||
} else {
|
||||
LOG_INFO(Frontend, "Mirroring: Startup sync skipped (Reason: UI Busy or Game is Emulating).");
|
||||
}
|
||||
|
||||
emit PopulatingCompleted();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user