We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 980b70e commit 3c8f201Copy full SHA for 3c8f201
app/src/processing/app/EditorToolbar.java
@@ -188,7 +188,15 @@ private void buildTouchBar() {
188
189
touchBarButtons[i] = new TouchBarButton();
190
touchBarButtons[i].setImage(touchBarImages[i][ROLLOVER]);
191
- touchBarButtons[i].setAction(event -> handleSelectionPressed(selection));
+ touchBarButtons[i].setAction(event -> {
192
+ // Run event handler later to prevent hanging if a dialog needs to be open
193
+ EventQueue.invokeLater(new Runnable() {
194
+ @Override
195
+ public void run() {
196
+ handleSelectionPressed(selection);
197
+ }
198
+ });
199
200
201
TouchBarItem touchBarItem = new TouchBarItem(title[i], touchBarButtons[i], true);
202
touchBarItem.setCustomizationLabel(title[i]);
0 commit comments