diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-09-16 14:09:08 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-09-16 16:41:22 +0300 |
commit | 8795c2da4f1b082b17c0291aeecd2e51f4f4a51f (patch) | |
tree | 0015939983a5fc7bb60b98dc67984871346ff010 /ui/src/components/mail/listing.rs | |
parent | e6b7d3a85567b6e747b6201c0be98e22715d7c68 (diff) |
ui: small configuration fixes
- unused options were removed,
- renamed `index` conf option to `index_style`
Diffstat (limited to 'ui/src/components/mail/listing.rs')
-rw-r--r-- | ui/src/components/mail/listing.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/src/components/mail/listing.rs b/ui/src/components/mail/listing.rs index 2feb7259..9518a4e2 100644 --- a/ui/src/components/mail/listing.rs +++ b/ui/src/components/mail/listing.rs @@ -287,7 +287,7 @@ impl Component for Listing { if let Some(index_style) = context .accounts .get(self.cursor_pos.0) - .and_then(|account| account.folder_confs(folder_hash).conf_override.index) + .and_then(|account| account.folder_confs(folder_hash).conf_override.index_style) { self.component.set_style(index_style); }; @@ -332,7 +332,7 @@ impl Component for Listing { if let Some(index_style) = context .accounts .get(self.cursor_pos.0) - .and_then(|account| account.folder_confs(folder_hash).conf_override.index) + .and_then(|account| account.folder_confs(folder_hash).conf_override.index_style) { self.component.set_style(index_style); }; @@ -572,10 +572,9 @@ impl Listing { .collect(); /* Check if per-folder configuration overrides general configuration */ let component = if let Some(index_style) = accounts.get(0).and_then(|account| { - account - .folders_order - .get(0) - .and_then(|folder_hash| account.folder_confs(*folder_hash).conf_override.index) + account.folders_order.get(0).and_then(|folder_hash| { + account.folder_confs(*folder_hash).conf_override.index_style + }) }) { ListingComponent::from(index_style) } else { |