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
2026-09-24 13:57:40 -04:00
committed by Ralph Sennhauser
parent 08194a1d56
commit e2eb02fa59
@@ -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);
}