Skip to main content

Mountain/Vine/Server/Notification/
OutputShow.rs

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