Skip to content

Commit

Permalink
feat: add Reset button when scroll does to load
Browse files Browse the repository at this point in the history
  • Loading branch information
Umatriz committed Jul 23, 2024
1 parent 242ede3 commit 1046fd8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/client/src/views/mods_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,13 @@ impl View for ModManager<'_> {
}

if self.mod_manager_state.scroll.bottom_loading_state().loading() {
ui.spinner();
ui.horizontal(|ui| {
ui.spinner();
ui.label("If loading takes too long try to");
if ui.button("Reset").clicked() {
self.mod_manager_state.scroll.reset()
};
});
}
});

Expand Down

0 comments on commit 1046fd8

Please sign in to comment.