Dolda2000 GitWeb
/
kaka
/
rust-sdl-test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0137bb
)
Bugfix - don't return unless Some
author
Tomas Wenström
<tomas.wenstrom@gmail.com>
Sat, 6 Feb 2021 16:02:53 +0000
(17:02 +0100)
committer
Tomas Wenström
<tomas.wenstrom@gmail.com>
Sat, 6 Feb 2021 16:02:53 +0000
(17:02 +0100)
src/core/app.rs
patch
|
blob
|
blame
|
history
diff --git
a/src/core/app.rs
b/src/core/app.rs
index
18be50c
..
d440eb3
100644
(file)
--- a/
src/core/app.rs
+++ b/
src/core/app.rs
@@
-248,7
+248,9
@@
impl App {
}
_ => {
if let Some(state) = self.states.last_mut() {
- return state.handle_event(event)
+ if let Some(change) = state.handle_event(event) {
+ return Some(change);
+ }
} else {
return Some(StateChange::Exit)
}