Skip to content

Commit

Permalink
show “failed” when test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfans committed Jun 4, 2017
1 parent a1cd296 commit 84e20d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ShadowsocksX-NG/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
if let latency = p.latency{
serverMenuText += " - \(latency) ms"
}
else{
serverMenuText += " - failed"
}
}
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 84e20d9

Please sign in to comment.