Skip to content

Commit

Permalink
Avoid launching editor during image export
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Feb 4, 2025
1 parent b253870 commit a6a0d41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Bonsai/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ internal static int Main(string[] args)
});
parser.Parse(args);

if (exportImage)
launchEditor = false;

var editorAssembly = typeof(Program).Assembly;
var editorPath = editorAssembly.Location;
var editorFolder = Path.GetDirectoryName(editorPath);
Expand Down

0 comments on commit a6a0d41

Please sign in to comment.