From 2b70dd521a84a1b751a41f8c08752c297afc47f2 Mon Sep 17 00:00:00 2001 From: Naren Dasan Date: Tue, 27 Mar 2018 18:49:34 -0500 Subject: [PATCH] 0.0.1 --- Cargo.toml | 2 +- src/rtop/ui/renderer/render.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e9057a7..8abaefe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rtop" -version = "0.0.0" +version = "0.0.1" authors = ["Naren Dasan "] description = "A system monitor implemented in Rust" homepage = "https://github.com/narendasan/rtop" diff --git a/src/rtop/ui/renderer/render.rs b/src/rtop/ui/renderer/render.rs index 67450fa..c5e6f77 100644 --- a/src/rtop/ui/renderer/render.rs +++ b/src/rtop/ui/renderer/render.rs @@ -15,13 +15,13 @@ pub fn render(t: &mut Terminal, app: &App, area: &Rect) -> Result< .direction(Direction::Vertical) .sizes(&[Size::Fixed(3), Size::Min(0)]) .render(t, area, |t, chunks| { - render_tab_bar(t, app, &chunks[0]); + //render_tab_bar(t, app, &chunks[0]); match app.tabs.selection { 0 => { draw_first_tab(t, app, &chunks[1]); } 1 => { - draw_second_tab(t, app, &chunks[1]); + //draw_second_tab(t, app, &chunks[1]); } _ => {} }; @@ -47,7 +47,7 @@ fn draw_first_tab(t: &mut Terminal, app: &App, area: &Rect) { .render(t, area, |t, chunks| { panels::charts::draw_charts(t, app, &chunks[0]); panels::network::render_network_info(t, app, &chunks[1]); - panels::text::render_text(t, &chunks[2]); + //panels::text::render_text(t, &chunks[2]); }); }