feat: properly print json response to stdout

This commit is contained in:
2026-04-30 18:03:55 +02:00
parent 1976610833
commit 58687643fb
2 changed files with 10 additions and 5 deletions
+1 -2
View File
@@ -6,12 +6,11 @@ mod rutracker;
slint::include_modules!();
fn main() -> Result<(), Box<dyn Error>> {
rutracker::search("test");
let ui = AppWindow::new()?;
ui.on_request_text_input(|text| {
let text = text.trim();
println!("User input: {}", text);
let response = rutracker::search(&text);
});
ui.run()?;