index : nmrs-tui
A fast, Vim-friendly NetworkManager TUI built in Rust.
about summary refs log tree commit diff

Diffstat (limited to 'src/main.rs')

-rw-r--r-- src/main.rs 13
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index accfe0b..e0567f7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -4,18 +4,19 @@
extern crate log;
extern crate simplelog;

mod action;
mod app;
mod cli;
mod config;
mod events;
mod logger;
mod network_manager;
mod timer;
mod tui;
mod ui;
mod action;
mod timer;

use app::App;
use log::logger;
use tui::Tui;

use crate::{cli::Cli, config::Config};
@@ -33,7 +34,13 @@
        let mut tui = Tui::new()?;

        // Start TUI
        tui.run(&mut app).await?;
        if let Err(e) = tui.run(&mut app).await {
            tui.cleanup()?;

            error!("Fatal error: {:#}", e);
            logger().flush();
            return Err(e);
        }
    }

    Ok(())