diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-08-31 18:55:40 +0200 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-08-31 18:55:40 +0200 |
| commit | b4573e4869bd1cf7c0503ebccd86e8a36c790063 (patch) | |
| tree | c5d7123e77a2da7fc4584e2afc46fcb00139b92f /src/widgets/tabs.rs | |
| parent | feat: add tabs widget (diff) | |
| download | sl0pstatus-b4573e4869bd1cf7c0503ebccd86e8a36c790063.tar.gz sl0pstatus-b4573e4869bd1cf7c0503ebccd86e8a36c790063.tar.xz sl0pstatus-b4573e4869bd1cf7c0503ebccd86e8a36c790063.zip | |
chore: remove format suffix from config
Diffstat (limited to 'src/widgets/tabs.rs')
| -rw-r--r-- | src/widgets/tabs.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/tabs.rs b/src/widgets/tabs.rs index 396be4a..6353251 100644 --- a/src/widgets/tabs.rs +++ b/src/widgets/tabs.rs @@ -14,12 +14,12 @@ pub struct TabsWidget { impl TabsWidget { pub fn new(config: BTreeMap<String, String>) -> Self { let mut normal_tab_format_string = ""; - if let Some(form) = config.get("tab_format") { + if let Some(form) = config.get("tab_normal") { normal_tab_format_string = form; } let active_tab_format = - FormattedPart::from_format_string(match config.get("tab_active_format") { + FormattedPart::from_format_string(match config.get("tab_active") { Some(form) => form.to_string(), None => normal_tab_format_string.to_string(), }); |
