fix bug #140 #121 Ping result not shown on server menu

This commit is contained in:
秦宇航
2017-05-13 08:32:43 +08:00
parent 3ce21085c6
commit 83a9e475be
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -508,7 +508,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
serverMenuText = p.serverHost
}
if let latency = p.latency{
serverMenuText += " - \(latency)ms"
serverMenuText += " - \(latency) ms"
}
}
}
@@ -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
}
+1 -1
View File
@@ -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>