mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Reset running = true
in Cursive::run
This allows to start another loop after quitting the first time.
This commit is contained in:
parent
ffe5b57749
commit
900bdfea58
@ -582,9 +582,13 @@ impl Cursive {
|
|||||||
///
|
///
|
||||||
/// Calls [`step(&mut self)`] until [`quit(&mut self)`] is called.
|
/// Calls [`step(&mut self)`] until [`quit(&mut self)`] is called.
|
||||||
///
|
///
|
||||||
|
/// After this function returns, you can call
|
||||||
|
/// it again and it will start a new loop.
|
||||||
|
///
|
||||||
/// [`step(&mut self)`]: #method.step
|
/// [`step(&mut self)`]: #method.step
|
||||||
/// [`quit(&mut self)`]: #method.quit
|
/// [`quit(&mut self)`]: #method.quit
|
||||||
pub fn run(&mut self) {
|
pub fn run(&mut self) {
|
||||||
|
self.running = true;
|
||||||
|
|
||||||
// And the big event loop begins!
|
// And the big event loop begins!
|
||||||
while self.running {
|
while self.running {
|
||||||
|
Loading…
Reference in New Issue
Block a user