summaryrefslogtreecommitdiffstats
path: root/src/hbox.rs
diff options
context:
space:
mode:
authorrabite <rabite@posteo.de>2019-01-21 21:46:13 +0100
committerrabite <rabite@posteo.de>2019-01-21 21:46:13 +0100
commit8ed80cea89a11a58497094a73fcdd0e5a3d99c81 (patch)
treee38514662459768a80412da8cf7c3e06882f9763 /src/hbox.rs
parent8ad1b657ec3d20bab2199b33a22ff9a191dfe58d (diff)
got it somewhat working (hopefully)
Diffstat (limited to 'src/hbox.rs')
-rw-r--r--src/hbox.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hbox.rs b/src/hbox.rs
index 9c9c900..538edf5 100644
--- a/src/hbox.rs
+++ b/src/hbox.rs
@@ -37,7 +37,7 @@ impl Widget for HBox {
}
fn render_header(&self) -> String {
- self.children[self.main].render_header()
+ self.children[self.active].render_header()
}
fn refresh(&mut self) {
@@ -67,6 +67,6 @@ impl Widget for HBox {
fn on_event(&mut self, event: Event) {
- self.children[self.main].on_event(event);
+ self.children[self.active].on_event(event);
}
}