summaryrefslogtreecommitdiffstats
path: root/widget/src/pane_grid
diff options
context:
space:
mode:
authorLibravatar Joao Freitas <51237625+jhff@users.noreply.github.com>2023-05-19 12:15:44 +0100
committerLibravatar Joao Freitas <51237625+jhff@users.noreply.github.com>2023-05-19 12:15:44 +0100
commit9b5f32ee403c8b0730e3bac2b48aab6b87d7b653 (patch)
tree6a7ce7f5e1d01d6c6ed150ccbd7bcebf7fef9040 /widget/src/pane_grid
parentbc590e2d6f3a39b09b11928c829f05d7bc9f9211 (diff)
downloadiced-9b5f32ee403c8b0730e3bac2b48aab6b87d7b653.tar.gz
iced-9b5f32ee403c8b0730e3bac2b48aab6b87d7b653.tar.bz2
iced-9b5f32ee403c8b0730e3bac2b48aab6b87d7b653.zip
Rename invert -> swap
Diffstat (limited to 'widget/src/pane_grid')
-rw-r--r--widget/src/pane_grid/state.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/widget/src/pane_grid/state.rs b/widget/src/pane_grid/state.rs
index 6ab34884..1f034ca3 100644
--- a/widget/src/pane_grid/state.rs
+++ b/widget/src/pane_grid/state.rs
@@ -193,11 +193,11 @@ impl<T> State<T> {
axis: Axis,
target: &Pane,
pane: &Pane,
- invert: bool,
+ swap: bool,
) {
if let Some((state, _)) = self.close(pane) {
if let Some((new_pane, _)) = self.split(axis, target, state) {
- if invert {
+ if swap {
self.swap(target, &new_pane);
}
}