getting there

This commit is contained in:
2026-03-21 17:25:09 +00:00
committed by James Norcutt
parent 6314b16e57
commit 8e32cc7277
5 changed files with 53 additions and 8 deletions
+6 -2
View File
@@ -10,7 +10,7 @@ use crossterm::terminal::{
use ratatui::backend::{Backend, CrosstermBackend};
use ratatui::Terminal;
use crate::app::App;
use crate::app::{App, Server};
use crate::ui;
pub fn run(tick_rate: Duration, enhanced_graphics: bool) -> Result<(), Box<dyn Error>> {
@@ -22,7 +22,7 @@ pub fn run(tick_rate: Duration, enhanced_graphics: bool) -> Result<(), Box<dyn E
let mut terminal = Terminal::new(backend)?;
// create app and run it
let app = App::new("Klipper-Tui", enhanced_graphics);
let app = App::new("Klipper-Tui", get_servers(), enhanced_graphics);
let app_result = run_app(&mut terminal, app, tick_rate);
// restore terminal
@@ -74,3 +74,7 @@ where
}
}
}
pub fn get_servers<'a>() -> Vec<Server<'a>> {
//todo: add printer ip addrs
}