Use Dialog instead of Panel in progress example

This commit is contained in:
Alexandre Bury 2016-08-05 10:48:23 -07:00
parent 6fd47f443e
commit 215e88ae3e

View File

@ -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.