mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-12 09:21:59 +00:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user