Skip to main content

sidebar_dispatch

Function sidebar_dispatch 

Source
pub(super) fn sidebar_dispatch(ui: Rc<LibraryWindowUi>, source: LibrarySource)
Expand description

Common path for sidebar selections. Skips redundant dispatches so the reload_sidebar programmatic re-selection doesn’t loop into another fetch – but only when the content stack is already showing the current source, since the Albums grid moves the stack without changing source.