From 2efd090e81f2b8225189d31d2b97d7265891c82a Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Wed, 2 Jan 2019 10:24:50 +0100 Subject: [PATCH] Remove last editor window after saving its properties Only OSX needs the "app" to stay open after handleQuit and to remove the editor windows when called. Fixes #8337 --- app/src/processing/app/Base.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 422c5170d..3c3615381 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -932,9 +932,10 @@ public class Base { } if (editors.size() == 1) { + handleQuit(); + // Everything called after handleQuit will only affect OSX editor.setVisible(false); editors.remove(editor); - handleQuit(); } else { // More than one editor window open, // proceed with closing the current window.