mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
Use classic close() handle when macOS 10.13 workaround is on
This commit is contained in:
parent
0c325b4ff6
commit
59a57a9312
@ -971,7 +971,7 @@ public class Base {
|
|||||||
// Save out the current prefs state
|
// Save out the current prefs state
|
||||||
PreferencesData.save();
|
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),
|
// If this was fired from the menu or an AppleEvent (the Finder),
|
||||||
// then Mac OS X will send the terminate signal itself.
|
// then Mac OS X will send the terminate signal itself.
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user