diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-02-26 17:50:47 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:38 +0300 |
commit | e285d1006b6d4a2439c0e5e274d5ca30f1fdc5b6 (patch) | |
tree | 3888a0eac8804249f37a08548abd16df7104ef8b /ui/src/components/utilities/widgets.rs | |
parent | 00abea5bff8c746091380a4e4f1e04337bc4f493 (diff) |
Open Contacts list from accounts tab
Diffstat (limited to 'ui/src/components/utilities/widgets.rs')
-rw-r--r-- | ui/src/components/utilities/widgets.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/components/utilities/widgets.rs b/ui/src/components/utilities/widgets.rs index 971ae11d..78b8e931 100644 --- a/ui/src/components/utilities/widgets.rs +++ b/ui/src/components/utilities/widgets.rs @@ -120,7 +120,7 @@ impl Component for FormWidget { self.dirty = false; context.dirty_areas.push_back(area); } - fn process_event(&mut self, event: &UIEvent, context: &mut Context) -> bool { + fn process_event(&mut self, event: &mut UIEvent, context: &mut Context) -> bool { if self.focus == FormFocus::Buttons { if self.buttons.process_event(event, context) { return true; @@ -256,7 +256,7 @@ impl<T> Component for ButtonWidget<T> where T: std::fmt::Debug + Default + Send len += cur_len + 3; } } - fn process_event(&mut self, event: &UIEvent, context: &mut Context) -> bool { + fn process_event(&mut self, event: &mut UIEvent, context: &mut Context) -> bool { match event.event_type { UIEventType::Input(Key::Char('\n')) => { self.result = Some(self.buttons.remove(&self.layout[self.cursor]).unwrap_or_default()); |