ui: remove reading progress slider from bottom panel
This commit is contained in:
@@ -440,12 +440,6 @@ egui::ComboBox::from_id_salt("bg_type_selector")
|
|||||||
"1/1".to_string()
|
"1/1".to_string()
|
||||||
};
|
};
|
||||||
ui.label(label);
|
ui.label(label);
|
||||||
let mut progress = if total_pages > 0 {
|
|
||||||
*current_page as f32 / total_pages as f32
|
|
||||||
} else { 0.0 };
|
|
||||||
if ui.add(egui::Slider::new(&mut progress, 0.0..=1.0).text("")).changed() && total_pages > 0 {
|
|
||||||
*current_page = (progress * total_pages as f32).round() as usize;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user