Update mutation example

Don't show the popup at start, let the user read the text.
This commit is contained in:
Alexandre Bury 2015-05-23 20:28:03 -07:00
parent e79207ac6e
commit eb6af9b981

View File

@ -19,7 +19,7 @@ fn show_popup(siv: &mut Cursive) {
fn main() {
let mut siv = Cursive::new();
let content = "Press Q to quit the application.\n\nPress P to bring back the popup.";
let content = "Press Q to quit the application.\n\nPress P to open the popup.";
siv.add_global_callback('q' as i32, |s| s.quit());
@ -29,8 +29,6 @@ fn main() {
siv.add_layer(KeyEventView::new(IdView::new("text", TextView::new(content)))
.register('p' as i32, |s| show_popup(s)));
show_popup(&mut siv);
siv.run();
}