1、使用cocoapods集成PingUtil
2、在导入、新增、修改的时候刷新ping值
This commit is contained in:
@ -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.", "", "")
|
||||
|
Reference in New Issue
Block a user