mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 18:35:37 +01:00
Replace Thread with invokeLater in PreferencesFrame
This commit is contained in:
@@ -800,11 +800,11 @@ public class PreferencesFrame {
|
||||
}
|
||||
|
||||
// This takes a while to load, so run it from a separate thread
|
||||
new Thread(new Runnable() {
|
||||
EventQueue.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
initFontList();
|
||||
}
|
||||
}).start();
|
||||
});
|
||||
|
||||
fontSizeField.setSelectedItem(Preferences.getInteger("editor.font.size"));
|
||||
consoleSizeField.setSelectedItem(Preferences.getInteger("console.font.size"));
|
||||
|
||||
Reference in New Issue
Block a user