forge
Explore
Log in

Don't you dare go Hollow

layout/scrolling: Remove more redundant animate args

Browse files at this commit

d45b06385decc96bc1817a15d5a7450ff6ca37b1Ivan MolodetskikhParent: 919dcbe
These were redundant before too.
src/layout/scrolling.rsmodified+6 -6
@@ -2629,7 +2629,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
2629 (&mut self.columns[self.active_column_idx], None)2629 (&mut self.columns[self.active_column_idx], None)
2630 };2630 };
2631 2631
2632- col.reset_window_height(tile_idx, true);2632+ col.reset_window_height(tile_idx);
2633 2633
2634 cancel_resize_for_column(&mut self.interactive_resize, col);2634 cancel_resize_for_column(&mut self.interactive_resize, col);
2635 }2635 }
@@ -2677,7 +2677,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
2677 (&mut self.columns[self.active_column_idx], None)2677 (&mut self.columns[self.active_column_idx], None)
2678 };2678 };
2679 2679
2680- col.toggle_window_height(tile_idx, true, forwards);2680+ col.toggle_window_height(tile_idx, forwards);
2681 2681
2682 cancel_resize_for_column(&mut self.interactive_resize, col);2682 cancel_resize_for_column(&mut self.interactive_resize, col);
2683 }2683 }
@@ -4766,7 +4766,7 @@ impl<W: LayoutElement> Column<W> {
4766 self.update_tile_sizes(animate);4766 self.update_tile_sizes(animate);
4767 }4767 }
4768 4768
4769- fn reset_window_height(&mut self, tile_idx: Option<usize>, animate: bool) {4769+ fn reset_window_height(&mut self, tile_idx: Option<usize>) {
4770 if self.display_mode == ColumnDisplay::Tabbed {4770 if self.display_mode == ColumnDisplay::Tabbed {
4771 // When tabbed, reset window height should work on any window, not just the fixed-size4771 // When tabbed, reset window height should work on any window, not just the fixed-size
4772 // one.4772 // one.
@@ -4778,10 +4778,10 @@ impl<W: LayoutElement> Column<W> {
4778 self.data[tile_idx].height = WindowHeight::auto_1();4778 self.data[tile_idx].height = WindowHeight::auto_1();
4779 }4779 }
4780 4780
4781- self.update_tile_sizes(animate);4781+ self.update_tile_sizes(true);
4782 }4782 }
4783 4783
4784- fn toggle_window_height(&mut self, tile_idx: Option<usize>, animate: bool, forwards: bool) {4784+ fn toggle_window_height(&mut self, tile_idx: Option<usize>, forwards: bool) {
4785 let tile_idx = tile_idx.unwrap_or(self.active_tile_idx);4785 let tile_idx = tile_idx.unwrap_or(self.active_tile_idx);
4786 4786
4787 // Start by converting all heights to automatic, since only one window in the column can be4787 // Start by converting all heights to automatic, since only one window in the column can be
@@ -4829,7 +4829,7 @@ impl<W: LayoutElement> Column<W> {
4829 }4829 }
4830 };4830 };
4831 self.data[tile_idx].height = WindowHeight::Preset(preset_idx);4831 self.data[tile_idx].height = WindowHeight::Preset(preset_idx);
4832- self.update_tile_sizes(animate);4832+ self.update_tile_sizes(true);
4833 }4833 }
4834 4834
4835 /// Converts all heights in the column to automatic, preserving the apparent heights.4835 /// Converts all heights in the column to automatic, preserving the apparent heights.