Skip validating unchecked game config resources (#593)

This commit is contained in:
Derek MacDonald 2021-08-12 06:54:41 -04:00 committed by GitHub
parent ce42935863
commit 6622c6f516
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -395,7 +395,7 @@ namespace CodeImp.DoomBuilder.Windows
{
// Get configuration item
ci = listconfigs.Items[i].Tag as ConfigurationInfo;
if(!ci.Resources.IsValid())
if(listconfigs.Items[i].Checked && !ci.Resources.IsValid())
{
MessageBox.Show(this, "At least one resource doesn't exist in \"" + ci.Name + "\" game configuration!", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning);
tabs.SelectedTab = tabresources;