From 59a57a9312bd02d7dbc92dc7846f4216f2793c70 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Thu, 28 Sep 2017 09:21:41 +0200 Subject: [PATCH] Use classic close() handle when macOS 10.13 workaround is on --- app/src/processing/app/Base.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 6063ceb74..3f3158c98 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -971,7 +971,7 @@ public class Base { // Save out the current prefs state PreferencesData.save(); - if (!OSUtils.isMacOS()) { + if (!OSUtils.isMacOS() || System.getProperty("apple.laf.useScreenMenuBar") == "false") { // If this was fired from the menu or an AppleEvent (the Finder), // then Mac OS X will send the terminate signal itself. System.exit(0);