feat: add download table controls

This commit is contained in:
nimbold
2026-06-01 05:08:07 +03:30
parent c8624c7c77
commit 2e78bfe588
11 changed files with 1267 additions and 106 deletions
+19
View File
@@ -19,6 +19,25 @@ struct FirelinkApp: App {
.frame(minWidth: 980, minHeight: 640)
}
.windowStyle(.titleBar)
WindowGroup("Add Downloads", id: "add-downloads") {
AddDownloadsView()
.environmentObject(controller)
.environmentObject(settings)
}
.windowResizability(.contentSize)
WindowGroup("Download Properties", for: UUID.self) { $downloadID in
if let downloadID {
DownloadPropertiesWindow(downloadID: downloadID)
.environmentObject(controller)
.environmentObject(settings)
} else {
ContentUnavailableView("Download Not Found", systemImage: "questionmark.circle")
}
}
.windowResizability(.contentSize)
.commands {
CommandGroup(after: .newItem) {
Button("Start Queue") {