1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Only load Touch Bar images once

This commit is contained in:
Sandeep Mistry 2018-11-01 09:33:22 -04:00 committed by Cristian Maglie
parent 17a60f4e3d
commit df9c25692d

View File

@ -167,7 +167,9 @@ public class EditorToolbar extends JComponent implements MouseInputListener, Key
}
private void buildTouchBar() {
if (touchBarImages == null) {
loadTouchBarImages();
}
touchBar = new JTouchBar();
touchBarButtons = new TouchBarButton[BUTTON_COUNT];