Skip to content

Commit

Permalink
fix bug shadowsocks#140 shadowsocks#121 Ping result not shown on serv…
Browse files Browse the repository at this point in the history
…er menu
  • Loading branch information
qinyuhang committed May 13, 2017
1 parent 3ce2108 commit 83a9e47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion ShadowsocksX-NG/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
serverMenuText = p.serverHost
}
if let latency = p.latency{
serverMenuText += " - \(latency)ms"
serverMenuText += " - \(latency) ms"
}
}
}
Expand Down Expand Up @@ -615,6 +615,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
let item = NSMenuItem()
item.tag = i //+ kProfileMenuItemIndexBase
item.title = p.title()
if let latency = p.latency{
item.title += " - \(latency) ms"
}
if mgr.activeProfileId == p.uuid {
item.state = 1
}
Expand Down
2 changes: 1 addition & 1 deletion ShadowsocksX-NG/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>2</string>
<string>3</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit 83a9e47

Please sign in to comment.