Skip to content

Commit b012846

Browse files
committed
Build menus only in gui mode
1 parent 811ffe4 commit b012846

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/src/processing/app/Base.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,13 @@ public Base(String[] args) throws Exception {
245245

246246
splash.splashText(tr("Initializing packages..."));
247247
BaseNoGui.initPackages();
248+
248249
splash.splashText(tr("Preparing boards..."));
249-
rebuildBoardsMenu();
250-
rebuildProgrammerMenu();
250+
251+
if (!isCommandLine()) {
252+
rebuildBoardsMenu();
253+
rebuildProgrammerMenu();
254+
}
251255

252256
// Setup board-dependent variables.
253257
onBoardOrPortChange();

0 commit comments

Comments
 (0)