Fix tests & lints
This commit is contained in:
parent
df7bf55ce1
commit
923878c7b7
1 changed files with 6 additions and 5 deletions
|
|
@ -85,7 +85,7 @@ use crate::{
|
||||||
/// let (mut state, _) = pane_grid::State::new(PaneState::SomePane);
|
/// let (mut state, _) = pane_grid::State::new(PaneState::SomePane);
|
||||||
///
|
///
|
||||||
/// let pane_grid =
|
/// let pane_grid =
|
||||||
/// PaneGrid::new(&state, |pane, state| {
|
/// PaneGrid::new(&state, |pane, state, is_maximized| {
|
||||||
/// pane_grid::Content::new(match state {
|
/// pane_grid::Content::new(match state {
|
||||||
/// PaneState::SomePane => text("This is some pane"),
|
/// PaneState::SomePane => text("This is some pane"),
|
||||||
/// PaneState::AnotherKindOfPane => text("This is another kind of pane"),
|
/// PaneState::AnotherKindOfPane => text("This is another kind of pane"),
|
||||||
|
|
@ -302,10 +302,11 @@ where
|
||||||
) -> event::Status {
|
) -> event::Status {
|
||||||
let action = tree.state.downcast_mut::<state::Action>();
|
let action = tree.state.downcast_mut::<state::Action>();
|
||||||
|
|
||||||
let on_drag = self
|
let on_drag = if self.drag_enabled() {
|
||||||
.drag_enabled()
|
&self.on_drag
|
||||||
.then_some(&self.on_drag)
|
} else {
|
||||||
.unwrap_or(&None);
|
&None
|
||||||
|
};
|
||||||
|
|
||||||
let event_status = update(
|
let event_status = update(
|
||||||
action,
|
action,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue