Skip to main content

Mountain/Vine/Server/Notification/
OutputChannelShow.rs

1#![allow(non_snake_case)]
2//! Cocoon → Mountain `outputChannel.show` notification (twin of
3//! `output.show`).
4
5use serde_json::Value;
6use tauri::Emitter;
7
8use crate::{Vine::Server::MountainVinegRPCService::MountainVinegRPCService, dev_log};
9
10pub async fn OutputChannelShow(Service:&MountainVinegRPCService, Parameter:&Value) {
11	let _ = Service.ApplicationHandle().emit("sky://output/show", Parameter);
12	dev_log!(
13		"grpc",
14		"[OutputChannel] show channel={}",
15		Parameter.get("channel").and_then(Value::as_str).unwrap_or("?")
16	);
17}