Add a max limit

This commit is contained in:
ny
2024-10-11 02:33:25 -04:00
parent e98b0a3758
commit 2a9f88c810

View File

@@ -330,6 +330,7 @@ private extension SettingsViewController
@IBAction func toggleDisableAppLimit(_ sender: UISwitch) { @IBAction func toggleDisableAppLimit(_ sender: UISwitch) {
UserDefaults.standard.isAppLimitDisabled = sender.isOn UserDefaults.standard.isAppLimitDisabled = sender.isOn
UserDefaults.standard.activeAppsLimit = sender.isOn ? Int.max : ALTActiveAppsLimit
} }
@IBAction func toggleIsBackgroundRefreshEnabled(_ sender: UISwitch) @IBAction func toggleIsBackgroundRefreshEnabled(_ sender: UISwitch)