Skip to content

Commit

Permalink
feat: update AdvancedViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Oct 23, 2023
1 parent 8751104 commit ab7dc5e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import UIKit
import ActiveLabel
import WidgetKit

class AdvancedViewController: UITableViewController {

Expand Down Expand Up @@ -68,6 +69,7 @@ class AdvancedViewController: UITableViewController {

UserDefaults.shared.set(sender.isOn, forKey: UserDefaults.Key.isV2ray)
evaluateReconnect(sender: sender as UIView)
WidgetCenter.shared.reloadTimelines(ofKind: "IVPNWidget")
}

@IBAction func selectV2rayProtocol(_ sender: UISegmentedControl) {
Expand All @@ -76,6 +78,7 @@ class AdvancedViewController: UITableViewController {

if UserDefaults.shared.isV2ray {
evaluateReconnect(sender: sender as UIView)
WidgetCenter.shared.reloadTimelines(ofKind: "IVPNWidget")
}
}

Expand Down

0 comments on commit ab7dc5e

Please sign in to comment.