aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app.rs b/src/app.rs
index 17c8bc3..5e6ab1f 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -128,6 +128,12 @@ impl App {
fn handle_action(&mut self, action: AppAction) -> Result<()> {
match action {
AppAction::Quit => Ok(self.quit()?),
+ _ => {
+ for component in &mut self.components {
+ component.handle_action(action.clone());
+ }
+ Ok(())
+ }
}
}
}