Skip to content

Commit df9c256

Browse files
sandeepmistrycmaglie
authored andcommitted
Only load Touch Bar images once
1 parent 17a60f4 commit df9c256

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/processing/app/EditorToolbar.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ public void windowActivated(WindowEvent e) {
167167
}
168168

169169
private void buildTouchBar() {
170-
loadTouchBarImages();
170+
if (touchBarImages == null) {
171+
loadTouchBarImages();
172+
}
171173

172174
touchBar = new JTouchBar();
173175
touchBarButtons = new TouchBarButton[BUTTON_COUNT];

0 commit comments

Comments
 (0)