show “failed” when test failed

This commit is contained in:
mcfans
2017-06-04 23:50:15 +08:00
parent a1cd296998
commit 84e20d915c
+5
View File
@@ -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