This commit is contained in:
cranci1 2025-01-27 15:45:38 +01:00
parent bcb1b6851b
commit 24793e1310
4 changed files with 25 additions and 19 deletions

View file

@ -20,5 +20,9 @@
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
</dict>
</plist>

View file

@ -40,7 +40,7 @@ struct SoraApp: App {
Task {
do {
let module = try await moduleManager.addModule(metadataUrl: moduleURL)
DropManager.shared.showDrop(title: "Module Added!", subtitle: "Check settings to select it", duration: 2.0, icon: UIImage(systemName: "app.badge.checkmark"))
DropManager.shared.showDrop(title: "Added \(module.metadata.sourceName)", subtitle: "Check settings to select it", duration: 2.0, icon: UIImage(systemName: "app.badge.checkmark"))
} catch {
Logger.shared.log("Failed to add module from URL scheme: \(error.localizedDescription)", type: "Error")
}

View file

@ -27,23 +27,25 @@ struct SettingsViewUI: View {
}
Section(header: Text("Media View"), footer: Text("The episode range controls how many episodes appear on each page. Episodes are grouped into sets (like 1-25, 26-50, and so on), allowing you to navigate through them more easily.")) {
Text("Episodes Range")
Spacer()
Menu {
Button(action: { episodeChunkSize = 25 }) {
Text("25")
HStack {
Text("Episodes Range")
Spacer()
Menu {
Button(action: { episodeChunkSize = 25 }) {
Text("25")
}
Button(action: { episodeChunkSize = 50 }) {
Text("50")
}
Button(action: { episodeChunkSize = 75 }) {
Text("75")
}
Button(action: { episodeChunkSize = 100 }) {
Text("100")
}
} label: {
Text("\(episodeChunkSize)")
}
Button(action: { episodeChunkSize = 50 }) {
Text("50")
}
Button(action: { episodeChunkSize = 75 }) {
Text("75")
}
Button(action: { episodeChunkSize = 100 }) {
Text("100")
}
} label: {
Text("\(episodeChunkSize)")
}
}
}

View file

@ -17,10 +17,10 @@ struct SettingsView: View {
Text("UI Settings")
}
NavigationLink(destination: SettingsViewModule()) {
Text("Modules")
Text("Media Player")
}
NavigationLink(destination: SettingsViewModule()) {
Text("Media Player")
Text("Modules")
}
}