Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove isLoading and search progress UI

+3 -15
macos/Rockbox.xcodeproj/project.xcworkspace/xcuserdata/tsirysandratraina.xcuserdatad/UserInterfaceState.xcuserstate

This is a binary file and will not be displayed.

+2 -7
macos/Rockbox/State/SearchManager.swift
··· 12 12 @Published var searchText: String = "" 13 13 @Published var isSearching: Bool = false 14 14 @Published var searchResults: SearchResults = SearchResults() 15 - @Published var isLoading: Bool = false 16 - 15 + 17 16 private var searchTask: Task<Void, Never>? 18 17 19 18 struct SearchResults { ··· 40 39 } 41 40 42 41 isSearching = true 43 - isLoading = true 44 - 42 + 45 43 searchTask = Task { 46 44 // Debounce 47 45 try? await Task.sleep(for: .milliseconds(300)) ··· 95 93 } 96 94 ) 97 95 98 - isLoading = false 99 96 } catch { 100 97 if !Task.isCancelled { 101 - isLoading = false 102 98 print("Search error: \(error)") 103 99 } 104 100 } ··· 109 105 searchText = "" 110 106 searchResults = SearchResults() 111 107 isSearching = false 112 - isLoading = false 113 108 searchTask?.cancel() 114 109 } 115 110 }
+1 -8
macos/Rockbox/Views/Search/SearchResultsView.swift
··· 17 17 var body: some View { 18 18 ScrollView { 19 19 VStack(alignment: .leading, spacing: 24) { 20 - if searchManager.isLoading { 21 - HStack { 22 - Spacer() 23 - ProgressView() 24 - Spacer() 25 - } 26 - .padding(.top, 40) 27 - } else if searchManager.searchResults.isEmpty { 20 + if searchManager.searchResults.isEmpty { 28 21 emptyResultsView 29 22 } else { 30 23 // Artists section