summaryrefslogtreecommitdiffstats
path: root/ui/src/components/mail/listing/thread.rs
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-04-10 22:01:02 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-06-10 19:40:44 +0300
commit106744c7ca4e5444d993a04c23bc04d93e2bfa6a (patch)
tree5aea51551eb5621a339d7066a6db103cb41a1c3f /ui/src/components/mail/listing/thread.rs
parentb993375fa0737dcfbd1aca5e765210969a143282 (diff)
ui: remove Entity
Diffstat (limited to 'ui/src/components/mail/listing/thread.rs')
-rw-r--r--ui/src/components/mail/listing/thread.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/src/components/mail/listing/thread.rs b/ui/src/components/mail/listing/thread.rs
index a6ccfccc..95e311ca 100644
--- a/ui/src/components/mail/listing/thread.rs
+++ b/ui/src/components/mail/listing/thread.rs
@@ -44,6 +44,7 @@ pub struct ThreadListing {
unfocused: bool,
initialised: bool,
view: Option<MailView>,
+ id: ComponentId,
}
impl ListingTrait for ThreadListing {
@@ -86,6 +87,7 @@ impl ThreadListing {
unfocused: false,
view: None,
initialised: false,
+ id: ComponentId::default(),
}
}
/// Fill the `self.content` `CellBuffer` with the contents of the account folder the user has
@@ -729,4 +731,11 @@ impl Component for ThreadListing {
.map(|p| p.get_shortcuts(context))
.unwrap_or_default()
}
+
+ fn id(&self) -> ComponentId {
+ self.id
+ }
+ fn set_id(&mut self, id: ComponentId) {
+ self.id = id;
+ }
}