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 240e1b5 commit af5a3d7Copy full SHA for af5a3d7
app/src/processing/app/Editor.java
@@ -1450,9 +1450,10 @@ public void selectTab(final int index) {
1450
// This must be run in the GUI thread
1451
SwingUtilities.invokeLater(() -> {
1452
codePanel.removeAll();
1453
- codePanel.add(tabs.get(index), BorderLayout.CENTER);
1454
- tabs.get(index).requestFocusInWindow(); // get the caret blinking
1455
- tabs.get(index).applyPreferences();
+ EditorTab selectedTab = tabs.get(index);
+ codePanel.add(selectedTab, BorderLayout.CENTER);
+ selectedTab.applyPreferences();
1456
+ selectedTab.requestFocusInWindow(); // get the caret blinking
1457
// For some reason, these are needed. Revalidate says it should be
1458
// automatically called when components are added or removed, but without
1459
// it, the component switched to is not displayed. repaint() is needed to
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments