feat(slint): favorites load error + retry state

navigate_favorites stores the load error in FavoritesState.load-error
(cleared on each load attempt); the view shows a "Couldn't load
favorites" + detail + Retry block when set, and the tracks/albums tabs
are gated so the error replaces them instead of showing alongside an
empty state. Retry re-navigates the current tab.

cc
This commit is contained in:
vicrodh committed 2026-05-27 07:40:22 -06:00
1 parent 2fce47bd06
commit 9c273119a6
4 files changed
+80 -5

No files matched your search

+3 -1
View File
@@ -717,7 +717,9 @@ pub fn selected_ids(window: &AppWindow) -> Vec<String> {
}
pub fn reset_loading(window: &AppWindow) {
window.global::<FavoritesState>().set_loading(true);
let state = window.global::<FavoritesState>();
state.set_loading(true);
state.set_load_error("".into());
}
/// Artwork jobs for the freshly loaded tab.