DEBUG: explore link changing

This commit is contained in:
leminlimez committed 2025-07-15 11:30:47 -04:00
1 parent 9687a8f19d
commit 5a94ea73d9
4 files changed
+37 -3

No files matched your search

+18
View File
@@ -13,6 +13,11 @@ struct SettingsView: View {
@AppStorage("cpHash") var cpHash: String = "" // CarPlay hash
@AppStorage("ignoreDurationLimit") var ignoreDurationLimit: Bool = false
// DEBUG
#if DEBUG
@AppStorage("exploreLink") var exploreLink: String = DownloadManager.exploreLink
#endif
@State var checkingForHash: Bool = false
@State var hashCheckTask: Task<Void, any Error>? = nil
@@ -53,6 +58,19 @@ struct SettingsView: View {
Label("App Hash", systemImage: "lock.app.dashed")
}
#if DEBUG
Section {
VStack {
Text(String("Explore Page URL"))
TextField(String("Enter Explore Page URL"), text: $exploreLink)
.textFieldStyle(RoundedBorderTextFieldStyle())
.font(.system(.body, design: .monospaced))
}
} header: {
Label(String("Debug"), systemImage: "ant")
}
#endif
Section {
Toggle(isOn: $ignoreDurationLimit, label: {
Label("Disable Video Duration Limit", systemImage: "ruler")