mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-11-22 13:34:00 +00:00
- ShadowsocksX-NG2/.swift-format: Apple Swift 6.4 toolchain default rules snapshot - ShadowsocksX-NG2/.swiftlint.yml: default rules, excludes build artifacts and Legacy/ - .githooks/pre-commit: format staged NG2 Swift files into the index, then SwiftLint; error-severity violations reject the commit; non-NG2 files pass through untouched - ShadowsocksX-NG2/AGENTS.md: NG2-scoped conventions (tiered below root AGENTS.md) - normalize skeleton sources to swift format baseline (2-space indent)
9 lines
280 B
Swift
9 lines
280 B
Swift
import AppKit
|
|
|
|
final class AppDelegate: NSObject, NSApplicationDelegate {
|
|
/// LSUIElement 菜单栏形态的硬性要求:关闭最后一个窗口后进程必须保留。
|
|
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
|
false
|
|
}
|
|
}
|