feat: properly print json response to stdout
This commit is contained in:
+1
-2
@@ -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()?;
|
||||
|
||||
Reference in New Issue
Block a user