From ab7dc5ed22666fa54ad3a9ffb01efda7751135dc Mon Sep 17 00:00:00 2001 From: Juraj Hilje Date: Mon, 23 Oct 2023 12:27:22 +0200 Subject: [PATCH] feat: update AdvancedViewController --- IVPNClient/Scenes/ViewControllers/AdvancedViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IVPNClient/Scenes/ViewControllers/AdvancedViewController.swift b/IVPNClient/Scenes/ViewControllers/AdvancedViewController.swift index 6278a97a3..cdd0b8572 100644 --- a/IVPNClient/Scenes/ViewControllers/AdvancedViewController.swift +++ b/IVPNClient/Scenes/ViewControllers/AdvancedViewController.swift @@ -23,6 +23,7 @@ import UIKit import ActiveLabel +import WidgetKit class AdvancedViewController: UITableViewController { @@ -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) { @@ -76,6 +78,7 @@ class AdvancedViewController: UITableViewController { if UserDefaults.shared.isV2ray { evaluateReconnect(sender: sender as UIView) + WidgetCenter.shared.reloadTimelines(ofKind: "IVPNWidget") } }