Skip to content

Commit

Permalink
check update when wake up
Browse files Browse the repository at this point in the history
  • Loading branch information
yanue committed Dec 9, 2018
1 parent 4a8bd80 commit 095a45c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions V2rayU/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ class AppDelegate: NSObject, NSApplicationDelegate {
if UserDefaults.getBool(forKey: .v2rayTurnOn) {
V2rayLaunch.Start()
}
// check v2ray core
V2rayCore().check()
// auto check updates
if UserDefaults.getBool(forKey: .autoCheckVersion) {
// check version
V2rayUpdater.checkForUpdatesInBackground()
}
}

@objc func onSleepNote(note: NSNotification) {
Expand Down

0 comments on commit 095a45c

Please sign in to comment.