Files
ShadowsocksX-NG/ShadowsocksX-NG2/App/AppDelegate.swift
T
Qiu Yuzhou 635d22378e feat(ng2): add swift format + SwiftLint pre-commit gate (#23)
- 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)
2026-09-20 13:45:48 +08:00

9 lines
280 B
Swift

import AppKit
final class AppDelegate: NSObject, NSApplicationDelegate {
/// LSUIElement 菜单栏形态的硬性要求:关闭最后一个窗口后进程必须保留。
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
false
}
}