Skip to content

Commit 42514dd

Browse files
committed
changed: tab name from Live to Summary
1 parent 8363250 commit 42514dd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/app/selected_tab.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use strum::{Display, EnumIter, FromRepr};
44
#[derive(Default, Copy, Clone, Display, FromRepr, EnumIter, PartialEq, Eq)]
55
pub enum SelectedTab {
66
#[default]
7-
Live,
7+
Summary,
88
Log,
99
}
1010

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ fn handle_events(app: &mut App) -> io::Result<()> {
110110
KeyCode::Char('q' | 'Q') => app.close(),
111111
KeyCode::Char('l') => app.next_tab(),
112112
KeyCode::Char('h') => app.prev_tab(),
113-
KeyCode::Char('o') if app.selected_tab == SelectedTab::Live => app.cycle_output_fmt(),
113+
KeyCode::Char('o') if app.selected_tab == SelectedTab::Summary => app.cycle_output_fmt(),
114114
KeyCode::Char('j') if app.selected_tab == SelectedTab::Log => {
115115
app.next_log_conn();
116116
}

src/ui/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub fn ui(f: &mut Frame, app: &App) {
2424
f.render_widget(widgets::Paragraph::new(clk_str), Rect::new(1, 0, 6, 3));
2525

2626
match app.selected_tab {
27-
SelectedTab::Live => tab::render_tab_live(f, app),
27+
SelectedTab::Summary => tab::render_tab_live(f, app),
2828
SelectedTab::Log => tab::render_tab_log(f, app),
2929
}
3030
}

0 commit comments

Comments
 (0)