Skip to content

Commit

Permalink
feat: auto scroll to top in window hiding process
Browse files Browse the repository at this point in the history
  • Loading branch information
BennoCrafter authored and Exidex committed Feb 13, 2025
1 parent 6be4c2a commit 7ce6844
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rust/client/src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2249,7 +2249,11 @@ impl AppModel {
} => {
commands.push(self.close_plugin_view(plugin_id.clone()));
}
GlobalState::MainView { .. } => {}
GlobalState::MainView {
focused_search_result, ..
} => {
commands.push(focused_search_result.scroll_to(0));
}
GlobalState::ErrorView { .. } => {}
GlobalState::PendingPluginView { .. } => {}
}
Expand Down

0 comments on commit 7ce6844

Please sign in to comment.