1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +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() {
loadTouchBarImages();
if (touchBarImages == null) {
loadTouchBarImages();
}
touchBar = new JTouchBar();
touchBarButtons = new TouchBarButton[BUTTON_COUNT];