Refactor views

This commit is contained in:
Arkadiusz Fal
2026-02-09 01:13:02 +01:00
parent 8464464199
commit 612dce6b9f
43 changed files with 143 additions and 125 deletions

View File

@@ -339,14 +339,14 @@ private struct ActiveDownloadsSectionContentView: View {
/// Only accesses manager.completedDownloads, so won't re-render when activeDownloads progress updates.
/// Generates rows directly for VideoListContainer (no Section wrapper).
private struct CompletedDownloadsSectionContentView: View {
@Environment(\.appEnvironment) private var appEnvironment
let manager: DownloadManager
let settings: DownloadSettings
let searchText: String
let listStyle: VideoListStyle
let isGroupedMode: Bool
@Environment(\.appEnvironment) private var appEnvironment
private var completedFiltered: [Download] {
guard !searchText.isEmpty else { return manager.completedDownloads }
let query = searchText.lowercased()