From 40c949e573ea85720e1fa9972a1e16f5f1216799 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tomas=20Wenstr=C3=B6m?= Date: Sat, 6 Feb 2021 17:02:53 +0100 Subject: [PATCH] Bugfix - don't return unless Some --- src/core/app.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/app.rs b/src/core/app.rs index 18be50c..d440eb3 100644 --- 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) } -- 2.11.0