ws that starts to work

This commit is contained in:
polv committed 2026-01-25 19:52:12 +07:00
1 parent fc58e68ad7
commit 0f4458912f
7 files changed
+178 -47

No files matched your search

+11 -3
View File
@@ -1,9 +1,17 @@
use tauri::Listener;
use serde::Deserialize;
use tauri::{Listener, AppHandle, Emitter};
use serde::{Serialize, Deserialize};
#[derive(Clone, Serialize)]
#[serde(rename_all = "camelCase")]
struct DownloadProgress {
t: u16,
}
#[tauri::command]
fn download_q(q: String) {
fn download_q(app: AppHandle, q: String) {
println!("Download q! {q}");
app.emit("seek_q", DownloadProgress { t: 0 }).unwrap();
}
#[tauri::command]