Prevent image export if no valid path exists/is given

This commit is contained in:
spherallic 2023-05-10 21:31:04 +02:00
parent 79dfafc691
commit 56b2423887

View file

@ -137,6 +137,9 @@ namespace CodeImp.DoomBuilder.BuilderModes.Interface
{
ICollection<Sector> sectors = General.Map.Map.SelectedSectorsCount == 0 ? General.Map.Map.Sectors : General.Map.Map.GetSelectedSectors(true);
if (string.IsNullOrEmpty(tbExportPath.Text))
return;
exporting = true;
cancelexport = false;