diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-04-10 22:01:02 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:44 +0300 |
commit | 106744c7ca4e5444d993a04c23bc04d93e2bfa6a (patch) | |
tree | 5aea51551eb5621a339d7066a6db103cb41a1c3f /ui/src/components/mail.rs | |
parent | b993375fa0737dcfbd1aca5e765210969a143282 (diff) |
ui: remove Entity
Diffstat (limited to 'ui/src/components/mail.rs')
-rw-r--r-- | ui/src/components/mail.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/src/components/mail.rs b/ui/src/components/mail.rs index 503c669b..0eda5942 100644 --- a/ui/src/components/mail.rs +++ b/ui/src/components/mail.rs @@ -48,6 +48,7 @@ pub struct AccountMenu { dirty: bool, visible: bool, cursor: Option<(usize, usize)>, + id: ComponentId, } impl fmt::Display for AccountMenu { @@ -72,6 +73,7 @@ impl AccountMenu { visible: true, dirty: true, cursor: None, + id: ComponentId::default(), } } /* @@ -301,4 +303,11 @@ impl Component for AccountMenu { .cloned() .collect() } + + fn id(&self) -> ComponentId { + self.id + } + fn set_id(&mut self, id: ComponentId) { + self.id = id; + } } |