Chore: hide dashboard in OSX 10.10 due to unable set useragent

This commit is contained in:
yicheng 2018-12-22 21:05:16 +08:00
parent 48981ac2be
commit 4ef60ea10f

View File

@ -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
}
}