layout/scrolling: Remove now-redundant animate arg
Browse files at this commit919dcbe7740a94e5c5e273f3cd87ccdd80658acdParent: a0d002c1 changed file +4 -6
- src/layout/scrolling.rs +4 -6
src/layout/scrolling.rsmodified+4 -6
| @@ -857,7 +857,6 @@ impl<W: LayoutElement> ScrollingSpace<W> { | |||
| 857 | self.scale, | 857 | self.scale, |
| 858 | width, | 858 | width, |
| 859 | is_full_width, | 859 | is_full_width, |
| 860 | - true, | ||
| 861 | ); | 860 | ); |
| 862 | 861 | ||
| 863 | self.add_column(col_idx, column, activate, anim_config); | 862 | self.add_column(col_idx, column, activate, anim_config); |
| @@ -876,7 +875,7 @@ impl<W: LayoutElement> ScrollingSpace<W> { | |||
| 876 | let tile_idx = tile_idx.unwrap_or(target_column.tiles.len()); | 875 | let tile_idx = tile_idx.unwrap_or(target_column.tiles.len()); |
| 877 | let mut prev_active_tile_idx = target_column.active_tile_idx; | 876 | let mut prev_active_tile_idx = target_column.active_tile_idx; |
| 878 | 877 | ||
| 879 | - target_column.add_tile_at(tile_idx, tile, true); | 878 | + target_column.add_tile_at(tile_idx, tile); |
| 880 | self.data[col_idx].update(target_column); | 879 | self.data[col_idx].update(target_column); |
| 881 | 880 | ||
| 882 | if tile_idx <= prev_active_tile_idx { | 881 | if tile_idx <= prev_active_tile_idx { |
| @@ -3795,7 +3794,6 @@ impl<W: LayoutElement> Column<W> { | |||
| 3795 | scale: f64, | 3794 | scale: f64, |
| 3796 | width: ColumnWidth, | 3795 | width: ColumnWidth, |
| 3797 | is_full_width: bool, | 3796 | is_full_width: bool, |
| 3798 | - animate_resize: bool, | ||
| 3799 | ) -> Self { | 3797 | ) -> Self { |
| 3800 | let options = tile.options.clone(); | 3798 | let options = tile.options.clone(); |
| 3801 | 3799 | ||
| @@ -3825,7 +3823,7 @@ impl<W: LayoutElement> Column<W> { | |||
| 3825 | 3823 | ||
| 3826 | let is_pending_fullscreen = tile.window().is_pending_fullscreen(); | 3824 | let is_pending_fullscreen = tile.window().is_pending_fullscreen(); |
| 3827 | 3825 | ||
| 3828 | - rv.add_tile_at(0, tile, animate_resize); | 3826 | + rv.add_tile_at(0, tile); |
| 3829 | 3827 | ||
| 3830 | if is_pending_fullscreen { | 3828 | if is_pending_fullscreen { |
| 3831 | rv.set_fullscreen(true); | 3829 | rv.set_fullscreen(true); |
| @@ -4088,7 +4086,7 @@ impl<W: LayoutElement> Column<W> { | |||
| 4088 | self.activate_idx(idx); | 4086 | self.activate_idx(idx); |
| 4089 | } | 4087 | } |
| 4090 | 4088 | ||
| 4091 | - fn add_tile_at(&mut self, idx: usize, mut tile: Tile<W>, animate: bool) { | 4089 | + fn add_tile_at(&mut self, idx: usize, mut tile: Tile<W>) { |
| 4092 | tile.update_config(self.view_size, self.scale, self.options.clone()); | 4090 | tile.update_config(self.view_size, self.scale, self.options.clone()); |
| 4093 | 4091 | ||
| 4094 | // Inserting a tile pushes down all tiles below it, but also in always-centering mode it | 4092 | // Inserting a tile pushes down all tiles below it, but also in always-centering mode it |
| @@ -4103,7 +4101,7 @@ impl<W: LayoutElement> Column<W> { | |||
| 4103 | self.data | 4101 | self.data |
| 4104 | .insert(idx, TileData::new(&tile, WindowHeight::auto_1())); | 4102 | .insert(idx, TileData::new(&tile, WindowHeight::auto_1())); |
| 4105 | self.tiles.insert(idx, tile); | 4103 | self.tiles.insert(idx, tile); |
| 4106 | - self.update_tile_sizes(animate); | 4104 | + self.update_tile_sizes(true); |
| 4107 | 4105 | ||
| 4108 | // Animate tiles according to the offset changes. | 4106 | // Animate tiles according to the offset changes. |
| 4109 | prev_offsets.insert(idx, Point::default()); | 4107 | prev_offsets.insert(idx, Point::default()); |