summaryrefslogtreecommitdiffstats
path: root/ui/src/components
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-01-07 12:56:28 +0200
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-01-07 12:56:28 +0200
commitb6403f486b0ceefff46781bccca056a38ecd0577 (patch)
treea96a2c88f847715de5201a1bc873dcc663b3ed29 /ui/src/components
parentca7d72e732f098ff702143b220ffdc7cd9f60554 (diff)
ui: Remove RefreshMailbox event
Leftover from older versions, it wasn't used anywhere
Diffstat (limited to 'ui/src/components')
-rw-r--r--ui/src/components/indexer.rs3
-rw-r--r--ui/src/components/mail/listing.rs16
-rw-r--r--ui/src/components/mail/listing/thread.rs8
3 files changed, 0 insertions, 27 deletions
diff --git a/ui/src/components/indexer.rs b/ui/src/components/indexer.rs
index 150caa85..c18835a3 100644
--- a/ui/src/components/indexer.rs
+++ b/ui/src/components/indexer.rs
@@ -106,9 +106,6 @@ impl Component for Indexer {
}
match *event {
- UIEvent::RefreshMailbox(_) => {
- self.dirty = true;
- }
UIEvent::ChangeMode(UIMode::Normal) => {
self.dirty = true;
}
diff --git a/ui/src/components/mail/listing.rs b/ui/src/components/mail/listing.rs
index e792b84e..1157e03c 100644
--- a/ui/src/components/mail/listing.rs
+++ b/ui/src/components/mail/listing.rs
@@ -530,22 +530,6 @@ impl Component for Listing {
}
_ => {}
},
- UIEvent::RefreshMailbox((idxa, folder_hash)) => {
- self.cursor_pos = (
- idxa,
- context.accounts[idxa]
- .folders_order
- .iter()
- .position(|&h| h == folder_hash)
- .unwrap_or(0),
- );
- context
- .replies
- .push_back(UIEvent::StatusEvent(StatusEvent::UpdateStatus(
- self.get_status(context).unwrap(),
- )));
- self.dirty = true;
- }
UIEvent::ChangeMode(UIMode::Normal) => {
self.dirty = true;
}
diff --git a/ui/src/components/mail/listing/thread.rs b/ui/src/components/mail/listing/thread.rs
index cbcdbcd7..eb25a2ec 100644
--- a/ui/src/components/mail/listing/thread.rs
+++ b/ui/src/components/mail/listing/thread.rs
@@ -273,10 +273,6 @@ impl ThreadListing {
return;
};
- // Inform State that we changed the current folder view.
- context
- .replies
- .push_back(UIEvent::RefreshMailbox((self.cursor_pos.0, folder_hash)));
// Get mailbox as a reference.
//
match context.accounts[self.cursor_pos.0].status(folder_hash) {
@@ -622,10 +618,6 @@ impl Component for ThreadListing {
self.view = None;
return true;
}
- UIEvent::RefreshMailbox(_) => {
- self.dirty = true;
- self.view = None;
- }
UIEvent::MailboxUpdate((ref idxa, ref idxf))
if context.accounts[self.new_cursor_pos.0]
.folders_order