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:
4 files changed
+80
-5
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user