mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-10 03:10:41 +00:00
Update mutation example
Don't show the popup at start, let the user read the text.
This commit is contained in:
parent
e79207ac6e
commit
eb6af9b981
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user