Chore: hide dashboard in OSX 10.10 due to unable set useragent
This commit is contained in:
parent
48981ac2be
commit
4ef60ea10f
@ -70,7 +70,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
setupData()
|
||||
actionUpdateConfig(self)
|
||||
updateLoggingLevel()
|
||||
|
||||
hideFunctionIfNeed()
|
||||
|
||||
// check config vaild via api
|
||||
ConfigFileManager.checkFinalRuleAndShowAlert()
|
||||
|
||||
@ -174,6 +175,14 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
|
||||
|
||||
}
|
||||
|
||||
func hideFunctionIfNeed() {
|
||||
if #available(OSX 10.11, *) {
|
||||
// pass
|
||||
} else {
|
||||
dashboardMenuItem.isHidden = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user