1、使用cocoapods集成PingUtil

2、在导入、新增、修改的时候刷新ping值
This commit is contained in:
Rudy Yang
2017-10-24 14:23:36 +08:00
parent b9e169cd10
commit 48e42b83c1
45 changed files with 3859 additions and 2047 deletions

View File

@ -109,7 +109,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
image.isTemplate = true
statusItem.image = image
statusItem.menu = statusMenu
ServerProfileManager.instance.refreshPing()
let notifyCenter = NotificationCenter.default
@ -555,6 +555,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
if isChanged {
mgr.save()
ServerProfileManager.instance.refreshPing()
self.updateServersMenu()
} else {
sendNotify("Not found valid qrcode of shadowsocks profile.", "", "")