mirror of
https://github.com/yanue/V2rayU.git
synced 2025-06-27 05:30:09 +00:00
ping when wake up
This commit is contained in:
parent
07da9ce9b1
commit
5cc7ab542c
@ -124,6 +124,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
}
|
||||
|
||||
@objc func onWakeNote(note: NSNotification) {
|
||||
print("onWakeNote")
|
||||
if UserDefaults.getBool(forKey: .v2rayTurnOn) {
|
||||
V2rayLaunch.Start()
|
||||
}
|
||||
@ -136,6 +137,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
}
|
||||
// auto update subscribe servers
|
||||
V2raySubSync().sync()
|
||||
// ping
|
||||
menuController.pingAtLaunch()
|
||||
}
|
||||
|
||||
@objc func onSleepNote(note: NSNotification) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user