mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
Use Dialog instead of Panel in progress example
This commit is contained in:
parent
6fd47f443e
commit
215e88ae3e
@ -44,7 +44,7 @@ fn phase_1(s: &mut Cursive) {
|
||||
let cb = s.cb_sink().clone();
|
||||
|
||||
s.pop_layer();
|
||||
s.add_layer(Panel::new(ProgressBar::new()
|
||||
s.add_layer(Dialog::new(ProgressBar::new()
|
||||
.range(0, n_max)
|
||||
.with_task(move |counter| {
|
||||
// This closure will be called in a separate thread.
|
||||
|
Loading…
Reference in New Issue
Block a user