mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-18 12:54:25 +01:00
Only load Touch Bar images once
This commit is contained in:
parent
17a60f4e3d
commit
df9c25692d
@ -167,7 +167,9 @@ public class EditorToolbar extends JComponent implements MouseInputListener, Key
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void buildTouchBar() {
|
private void buildTouchBar() {
|
||||||
loadTouchBarImages();
|
if (touchBarImages == null) {
|
||||||
|
loadTouchBarImages();
|
||||||
|
}
|
||||||
|
|
||||||
touchBar = new JTouchBar();
|
touchBar = new JTouchBar();
|
||||||
touchBarButtons = new TouchBarButton[BUTTON_COUNT];
|
touchBarButtons = new TouchBarButton[BUTTON_COUNT];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user