1
0
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:
Federico Fissore 2015-07-08 16:43:58 +02:00
parent f61cbb48b0
commit a9d10e069d

View File

@ -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();
}