refactor: move save_cols closer

why you so far away little guy?

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-11-20 11:04:25 -08:00
parent 792abf11d7
commit e2a2db8ac2

View File

@@ -824,7 +824,6 @@ fn timelines_view(ui: &mut egui::Ui, sizes: Size, app: &mut Damus) {
);
});
let mut save_cols = false;
let mut responses = Vec::with_capacity(app.columns.num_columns());
for col_index in 0..app.columns.num_columns() {
strip.cell(|ui| {
@@ -842,6 +841,7 @@ fn timelines_view(ui: &mut egui::Ui, sizes: Size, app: &mut Damus) {
//strip.cell(|ui| timeline::timeline_view(ui, app, timeline_ind));
}
let mut save_cols = false;
for response in responses {
let save = response.process_render_nav_response(app);
save_cols = save_cols || save;