option to ignore video duration limit

This commit is contained in:
leminlimez committed 2025-06-21 11:22:10 -04:00
1 parent 71d37a38bb
commit 7bf227a6de
3 files changed
+17 -2

No files matched your search

+6
View File
@@ -1484,6 +1484,9 @@
}
}
}
},
"Disable Video Duration Limit" : {
},
"Do you want to reset collections?" : {
"localizations" : {
@@ -4930,6 +4933,9 @@
}
}
}
},
"Preferences" : {
},
"Release" : {
"localizations" : {
+9
View File
@@ -11,6 +11,7 @@ struct SettingsView: View {
// Prefs
@AppStorage("pbHash") var pbHash: String = "" // PosterBoard hash
@AppStorage("cpHash") var cpHash: String = "" // CarPlay hash
@AppStorage("ignoreDurationLimit") var ignoreDurationLimit: Bool = false
@State var checkingForHash: Bool = false
@State var hashCheckTask: Task<Void, any Error>? = nil
@@ -46,6 +47,14 @@ struct SettingsView: View {
Label("App Hash", systemImage: "lock.app.dashed")
}
Section {
Toggle(isOn: $ignoreDurationLimit, label: {
Label("Disable Video Duration Limit", systemImage: "ruler")
})
} header: {
Label("Preferences", systemImage: "gear")
}
Section {
Button(action: {
UIImpactFeedbackGenerator(style: .soft).impactOccurred()