From 83a9e475be4c260a70a67fddb910c8a1cac6dea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E5=AE=87=E8=88=AA?= Date: Sat, 13 May 2017 08:32:43 +0800 Subject: [PATCH] fix bug #140 #121 Ping result not shown on server menu --- ShadowsocksX-NG/AppDelegate.swift | 5 ++++- ShadowsocksX-NG/Info.plist | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ShadowsocksX-NG/AppDelegate.swift b/ShadowsocksX-NG/AppDelegate.swift index 14f0ade..60b0e7c 100644 --- a/ShadowsocksX-NG/AppDelegate.swift +++ b/ShadowsocksX-NG/AppDelegate.swift @@ -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 } diff --git a/ShadowsocksX-NG/Info.plist b/ShadowsocksX-NG/Info.plist index 207a57d..50098f2 100644 --- a/ShadowsocksX-NG/Info.plist +++ b/ShadowsocksX-NG/Info.plist @@ -48,7 +48,7 @@ CFBundleVersion - 2 + 3 LSApplicationCategoryType public.app-category.utilities LSMinimumSystemVersion