Add to try from

This commit is contained in:
hodasemi 2023-01-17 15:40:53 +01:00
parent 4bb62bcfe8
commit cc6ff8ab32

View file

@ -12,6 +12,7 @@ use super::{
TextableWrapper,
};
#[derive(Clone)]
pub enum GrowDirection {
LeftToRight,
BottomToTop,
@ -222,6 +223,10 @@ impl ProgressBar {
progress_bar_builder = progress_bar_builder.set_foreground(foreground);
}
if let Some(dir) = progress_bar_info.direction.clone() {
progress_bar_builder = progress_bar_builder.set_grow_direction(dir);
}
progress_bar_builder.build(gui_handler.clone())
}