mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
Editor: force setting text area content in event dispatcher thread
This commit is contained in:
parent
f61cbb48b0
commit
a9d10e069d
@ -999,7 +999,7 @@ public class Sketch {
|
||||
current = (SketchCodeDocument) data.getCode(which).getMetadata();
|
||||
currentIndex = which;
|
||||
|
||||
editor.setCode(current);
|
||||
SwingUtilities.invokeLater(() -> editor.setCode(current));
|
||||
|
||||
editor.header.rebuild();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user