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/view/envelope.rs | |
parent | b993375fa0737dcfbd1aca5e765210969a143282 (diff) |
ui: remove Entity
Diffstat (limited to 'ui/src/components/mail/view/envelope.rs')
-rw-r--r-- | ui/src/components/mail/view/envelope.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/src/components/mail/view/envelope.rs b/ui/src/components/mail/view/envelope.rs index 51299f12..13217a5f 100644 --- a/ui/src/components/mail/view/envelope.rs +++ b/ui/src/components/mail/view/envelope.rs @@ -55,6 +55,7 @@ pub struct EnvelopeView { account_pos: usize, cmd_buf: String, + id: ComponentId, } impl fmt::Display for EnvelopeView { @@ -79,6 +80,7 @@ impl EnvelopeView { wrapper, account_pos, cmd_buf: String::with_capacity(4), + id: ComponentId::default(), } } @@ -545,4 +547,11 @@ impl Component for EnvelopeView { fn set_dirty(&mut self) { self.dirty = true; } + + fn id(&self) -> ComponentId { + self.id + } + fn set_id(&mut self, id: ComponentId) { + self.id = id; + } } |