mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-21 03:11:40 +00:00
Game Configuration dialog: fixed an crash related to required resource checks when switching through the game configurations too quickly. Fixes #813
This commit is contained in:
parent
86b86ac67a
commit
d30347b81b
1 changed files with 3 additions and 1 deletions
|
@ -205,7 +205,9 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
|
||||
cancellation.Dispose();
|
||||
|
||||
if (loadingrequiredarchives[location] == cancellation)
|
||||
// Loading might have been canceled outside of here, so make sure that the location is still in the list.
|
||||
// See https://github.com/jewalky/UltimateDoomBuilder/issues/813
|
||||
if (loadingrequiredarchives.ContainsKey(location) && loadingrequiredarchives[location] == cancellation)
|
||||
{
|
||||
General.WriteLogLine(string.Format("Resource check completed for: {0} (Match = {1}, RequiredArchives = {2})", location, loadingrequiredarchives[location] == cancellation, string.Join(",", loc.requiredarchives)));
|
||||
loadingrequiredarchives.Remove(location);
|
||||
|
|
Loading…
Reference in a new issue