mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-13 16:53:29 +01:00
feat: MDC (and update generated localizations and project file)
This commit is contained in:
@@ -205,6 +205,17 @@ struct DevModeMenu: View {
|
||||
} footer: {
|
||||
Text(L10n.DevModeView.Signing.footer)
|
||||
}
|
||||
|
||||
#if MDC
|
||||
Section {
|
||||
SwiftUI.Button(action: {
|
||||
UserDefaults.shared.lastInstalldPatchBootTime = nil
|
||||
UIApplication.alert(title: L10n.Action.success)
|
||||
}, label: { Text(L10n.DevModeView.Mdc.fakeUndo3AppLimitPatch) }).foregroundColor(.red)
|
||||
} header: {
|
||||
Text(L10n.DevModeView.Mdc.header)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
.navigationTitle(L10n.DevModeView.title)
|
||||
.enableInjection()
|
||||
|
||||
@@ -36,6 +36,7 @@ struct SettingsView: View {
|
||||
@State var isShowingDevModePrompt = false
|
||||
@State var isShowingDevModeMenu = false
|
||||
@State var isShowingResetAdiPbConfirmation = false
|
||||
@State var isShowingMDCPopup = false
|
||||
|
||||
@State var externalURLToShow: URL?
|
||||
@State var quickLookURL: URL?
|
||||
@@ -99,6 +100,21 @@ struct SettingsView: View {
|
||||
NavigationLink(L10n.AppIconsView.title) {
|
||||
AppIconsView()
|
||||
}
|
||||
|
||||
#if MDC
|
||||
NavigationLink(L10n.Remove3AppLimitView.title) {
|
||||
Remove3AppLimitView()
|
||||
}
|
||||
#else
|
||||
if CowExploits.isSupported {
|
||||
NavigationLink(L10n.Remove3AppLimitView.title) {}
|
||||
.disabled(true)
|
||||
.alert(isPresented: self.$isShowingMDCPopup) {
|
||||
Alert(title: Text(L10n.Remove3AppLimitView.title), message: Text(L10n.SettingsView.mdcPopup))
|
||||
}
|
||||
.onTapGesture { self.isShowingMDCPopup = true }
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Section {
|
||||
|
||||
Reference in New Issue
Block a user