From 27d5b03321ad6128b8dfe7488521cc5893953220 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sat, 12 Oct 2024 00:09:20 +0800 Subject: [PATCH] Terminate Xcodes app after last window closed --- Xcodes/XcodesApp.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Xcodes/XcodesApp.swift b/Xcodes/XcodesApp.swift index 74b3aef..b4ac30a 100644 --- a/Xcodes/XcodesApp.swift +++ b/Xcodes/XcodesApp.swift @@ -166,6 +166,10 @@ class AppDelegate: NSObject, NSApplicationDelegate { } func applicationDidFinishLaunching(_: Notification) {} + + func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { + true + } } func localizeString(_ key: String, comment: String = "") -> String {