diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-12-02 20:47:48 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-12-02 21:01:22 +0200 |
commit | 48e7a493a92730bedccc5dfaac8242ed49d55a0d (patch) | |
tree | 0fea8098a1e5d5ced26efca389bb3e5f56157756 /src/components/mail/status.rs | |
parent | e5b0ff4fe2799339076de95227b13d9755245f5f (diff) |
Add reload-config command
Closes #84 Add "reload configuration" command
Diffstat (limited to 'src/components/mail/status.rs')
-rw-r--r-- | src/components/mail/status.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/mail/status.rs b/src/components/mail/status.rs index ca5748b5..d63e5384 100644 --- a/src/components/mail/status.rs +++ b/src/components/mail/status.rs @@ -403,6 +403,10 @@ impl Component for AccountStatus { fn process_event(&mut self, event: &mut UIEvent, context: &mut Context) -> bool { let shortcuts = self.get_shortcuts(context); match *event { + UIEvent::ConfigReload { old_settings: _ } => { + self.theme_default = crate::conf::value(context, "theme_default"); + self.set_dirty(true); + } UIEvent::Resize => { self.dirty = true; } |