Skip to main content

Mountain/IPC/WindServiceHandlers/UI/
NotificationEndProgress.rs

1#![allow(unused_variables)]
2
3//! Wire method: `notification:endProgress`.
4
5use serde_json::{Value, json};
6use tauri::{AppHandle, Emitter};
7use CommonLibrary::IPC::SkyEvent::SkyEvent;
8
9pub async fn Fn(ApplicationHandle:AppHandle, Arguments:Vec<Value>) -> Result<Value, String> {
10	let Id = Arguments.first().and_then(|V| V.as_str()).unwrap_or("").to_string();
11
12	let _ = ApplicationHandle.emit(SkyEvent::NotificationProgressEnd.AsStr(), json!({ "id": Id }));
13
14	Ok(Value::Null)
15}