mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 19:00:46 +00:00
Fix pop_layer
button in tutorial_3.md
This commit is contained in:
parent
5a6c84a55e
commit
682fadeb1c
@ -58,7 +58,9 @@ fn add_name(s: &mut Cursive) {
|
|||||||
}).unwrap();
|
}).unwrap();
|
||||||
ok(s, &name);
|
ok(s, &name);
|
||||||
})
|
})
|
||||||
.button("Cancel", |s| s.pop_layer()));
|
.button("Cancel", |s| {
|
||||||
|
s.pop_layer();
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn delete_name(s: &mut Cursive) {
|
fn delete_name(s: &mut Cursive) {
|
||||||
@ -206,7 +208,9 @@ fn add_name(s: &mut Cursive) {
|
|||||||
.button("Ok", |s| {
|
.button("Ok", |s| {
|
||||||
// What do we do now?...
|
// What do we do now?...
|
||||||
})
|
})
|
||||||
.button("Cancel", |s| s.pop_layer()));
|
.button("Cancel", |s| {
|
||||||
|
s.pop_layer();
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -243,7 +247,9 @@ fn add_name(s: &mut Cursive) {
|
|||||||
view.get_content()
|
view.get_content()
|
||||||
}).unwrap();
|
}).unwrap();
|
||||||
})
|
})
|
||||||
.button("Cancel", |s| s.pop_layer()));
|
.button("Cancel", |s|
|
||||||
|
s.pop_layer();
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -284,7 +290,9 @@ fn add_name(s: &mut Cursive) {
|
|||||||
}).unwrap();
|
}).unwrap();
|
||||||
ok(s, &name);
|
ok(s, &name);
|
||||||
})
|
})
|
||||||
.button("Cancel", |s| s.pop_layer()));
|
.button("Cancel", |s| {
|
||||||
|
s.pop_layer();
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user