feat: enable useViewToRenderProxy at system above 10.15.2 [appcenter]
This commit is contained in:
parent
aad8b3b7d0
commit
73d24788cd
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@ ClashX/clash/
|
||||
.vscode
|
||||
ClashX/goClash/goClash.h
|
||||
ClashX/goClash/goClash.a
|
||||
fastlane/report.xml
|
||||
|
@ -18,4 +18,11 @@ extension AppDelegate {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
static var isAboveMacOS152: Bool {
|
||||
if #available(macOS 10.15.3, *) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ class MenuItemFactory {
|
||||
}
|
||||
}
|
||||
|
||||
static var useViewToRenderProxy: Bool = UserDefaults.standard.object(forKey: "useViewToRenderProxy") as? Bool ?? false {
|
||||
static var useViewToRenderProxy: Bool = UserDefaults.standard.object(forKey: "useViewToRenderProxy") as? Bool ?? AppDelegate.isAboveMacOS152 {
|
||||
didSet {
|
||||
UserDefaults.standard.set(useViewToRenderProxy, forKey: "useViewToRenderProxy")
|
||||
}
|
||||
|
@ -25,6 +25,11 @@ fastlane build
|
||||
fastlane beta
|
||||
```
|
||||
|
||||
### addKeyChain
|
||||
```
|
||||
fastlane addKeyChain
|
||||
```
|
||||
|
||||
|
||||
----
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user