mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 05:00:16 +00:00
Use a proper action when clicking navigate forward button
This commit is contained in:
parent
29c81e08bb
commit
b6786d5e41
1 changed files with 2 additions and 2 deletions
|
@ -195,7 +195,7 @@ struct NavHistoryState {
|
||||||
next_timestamp: Arc<AtomicUsize>,
|
next_timestamp: Arc<AtomicUsize>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Debug, Copy, Clone)]
|
||||||
pub enum NavigationMode {
|
pub enum NavigationMode {
|
||||||
Normal,
|
Normal,
|
||||||
GoingBack,
|
GoingBack,
|
||||||
|
@ -1462,7 +1462,7 @@ impl Pane {
|
||||||
.icon_size(IconSize::Small)
|
.icon_size(IconSize::Small)
|
||||||
.on_click({
|
.on_click({
|
||||||
let view = cx.view().clone();
|
let view = cx.view().clone();
|
||||||
move |_, cx| view.update(cx, Self::navigate_backward)
|
move |_, cx| view.update(cx, Self::navigate_forward)
|
||||||
})
|
})
|
||||||
.disabled(!self.can_navigate_forward())
|
.disabled(!self.can_navigate_forward())
|
||||||
.tooltip(|cx| Tooltip::for_action("Go Forward", &GoForward, cx)),
|
.tooltip(|cx| Tooltip::for_action("Go Forward", &GoForward, cx)),
|
||||||
|
|
Loading…
Reference in a new issue