diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java index 4ca057881..cb78d7f3e 100644 --- a/app/src/processing/app/Editor.java +++ b/app/src/processing/app/Editor.java @@ -1643,11 +1643,7 @@ public class Editor extends JFrame implements RunnerListener { // Cannot use invokeLater() here, otherwise it gets // placed on the event thread and causes a hang--bad idea all around. - if (present) { - new Thread(presentHandler).start(); - } else { - new Thread(runHandler).start(); - } + new Thread(present ? presentHandler : runHandler).start(); }