mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-21 12:43:25 +01:00
feat(dev mode): add button to force 10 app limit
This commit is contained in:
@@ -239,6 +239,11 @@ struct DevModeMenu: View {
|
|||||||
UserDefaults.shared.lastInstalldPatchBootTime = nil
|
UserDefaults.shared.lastInstalldPatchBootTime = nil
|
||||||
UIApplication.alert(title: L10n.Action.success)
|
UIApplication.alert(title: L10n.Action.success)
|
||||||
}, label: { Text(L10n.DevModeView.Mdc.fakeUndo3AppLimitPatch) }).foregroundColor(.red)
|
}, 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: {
|
} header: {
|
||||||
Text(L10n.DevModeView.Mdc.header)
|
Text(L10n.DevModeView.Mdc.header)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user