Prevent opening desktop when in headless mode

This commit is contained in:
CocoTheOwner 2021-03-09 15:21:09 +01:00
parent 343ae99b54
commit a4bbad3243

View File

@ -85,7 +85,9 @@ public class IrisProject
if(IrisSettings.get().getStudio().isOpenVSCode())
{
Desktop.getDesktop().open(i);
if (!GraphicsEnvironment.isHeadless()) {
Desktop.getDesktop().open(i);
}
}
break;