From 84e20d915cb5dc833a1cd62582c6184f677a4f9a Mon Sep 17 00:00:00 2001 From: mcfans Date: Sun, 4 Jun 2017 23:50:15 +0800 Subject: [PATCH] =?UTF-8?q?show=20=E2=80=9Cfailed=E2=80=9D=20when=20test?= =?UTF-8?q?=20failed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowsocksX-NG/AppDelegate.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ShadowsocksX-NG/AppDelegate.swift b/ShadowsocksX-NG/AppDelegate.swift index f9e982e..bd234cd 100644 --- a/ShadowsocksX-NG/AppDelegate.swift +++ b/ShadowsocksX-NG/AppDelegate.swift @@ -511,6 +511,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele if let latency = p.latency{ serverMenuText += " - \(latency) ms" } + else{ + serverMenuText += " - failed" + } } } @@ -618,6 +621,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele item.title = p.title() if let latency = p.latency{ item.title += " - \(latency) ms" + }else{ + item.title += " - failed" } if mgr.activeProfileId == p.uuid { item.state = 1