From 2a9f88c810d1832cac9b1c7d25d79e0ebab65f76 Mon Sep 17 00:00:00 2001 From: ny Date: Fri, 11 Oct 2024 02:33:25 -0400 Subject: [PATCH] Add a max limit --- AltStore/Settings/SettingsViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index 8022d510..0d61a2af 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -330,6 +330,7 @@ private extension SettingsViewController @IBAction func toggleDisableAppLimit(_ sender: UISwitch) { UserDefaults.standard.isAppLimitDisabled = sender.isOn + UserDefaults.standard.activeAppsLimit = sender.isOn ? Int.max : ALTActiveAppsLimit } @IBAction func toggleIsBackgroundRefreshEnabled(_ sender: UISwitch)