Refresh the replay list after deleting replays.

Before this, starting a replay after a deletion loaded and ran the
replay in the background without dismissing the replay list, and
starting another one crashed on an assertion.

Fixes #9246
This commit is contained in:
Aaron Muir Hamilton authored and Ralph Sennhauser committed 2026-09-27 19:37:01 +02:00
1 parent 08194a1d56
commit e2eb02fa59
1 file changed
+2 -1
@@ -211,7 +211,8 @@ async function deleteReplayButtonPressed()
error("Could not delete replay!");
// Refresh replay list
init();
loadReplays(createReplaySelectionData(""), false);
displayReplayList();
replaySelection.selected = Math.min(selectedIndex, g_ReplaysFiltered.length - 1);
}