Add to try from
This commit is contained in:
parent
4bb62bcfe8
commit
cc6ff8ab32
1 changed files with 5 additions and 0 deletions
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue