顶级菜单中服务器名前加上文字:服务器.
This commit is contained in:
@ -347,11 +347,13 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
|
||||
for v in defaults.array(forKey: "ServerProfiles")! {
|
||||
let profile = v as! [String:Any]
|
||||
if profile["Id"] as! String == defaults.string(forKey: "ActiveServerProfileId")! {
|
||||
var profileName :String
|
||||
if profile["Remark"] as! String != "" {
|
||||
serverMenuText = profile["Remark"] as! String
|
||||
profileName = profile["Remark"] as! String
|
||||
} else {
|
||||
serverMenuText = profile["ServerHost"] as! String
|
||||
profileName = profile["ServerHost"] as! String
|
||||
}
|
||||
serverMenuText = "\(serverMenuText) - \(profileName)"
|
||||
}
|
||||
}
|
||||
serversMenuItem.title = serverMenuText
|
||||
|
@ -45,3 +45,5 @@
|
||||
"Proxy - Global" = "Proxy - Global";
|
||||
|
||||
"Proxy - Manual" = "Proxy - Manual";
|
||||
|
||||
"Servers" = "Servers";
|
||||
|
@ -50,3 +50,4 @@
|
||||
|
||||
"Proxy - Manual" = "代理 - 手动";
|
||||
|
||||
"Servers" = "服务器";
|
||||
|
Reference in New Issue
Block a user