From a959dd73bb628875d1629a1fbb5c56d0d6e712d1 Mon Sep 17 00:00:00 2001 From: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Wed, 14 Jun 2023 17:47:30 -0700 Subject: [PATCH] feat(dev mode): add button to force 10 app limit --- AltStore/SwiftUI/Views/Settings/DevModeView.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AltStore/SwiftUI/Views/Settings/DevModeView.swift b/AltStore/SwiftUI/Views/Settings/DevModeView.swift index a47b4f03..0c804c9d 100644 --- a/AltStore/SwiftUI/Views/Settings/DevModeView.swift +++ b/AltStore/SwiftUI/Views/Settings/DevModeView.swift @@ -239,6 +239,11 @@ struct DevModeMenu: View { UserDefaults.shared.lastInstalldPatchBootTime = nil UIApplication.alert(title: L10n.Action.success) }, label: { Text(L10n.DevModeView.Mdc.fakeUndo3AppLimitPatch) }).foregroundColor(.red) + + SwiftUI.Button(action: { + UserDefaults.shared.lastInstalldPatchBootTime = bootTime() + UIApplication.alert(title: L10n.Action.success, message: "The free app limit will be reset to 3 upon reboot") + }, label: { Text("Force 10 app limit and tell SideStore installd patch has been applied (will cause staging errors if you haven't applied the patch elsewhere)") }).foregroundColor(.red) } header: { Text(L10n.DevModeView.Mdc.header) }