Skip to main content

Mountain/Command/TreeView/
OnTreeViewSelectionChanged.rs

1#![allow(non_snake_case)]
2
3//! Tauri command - notify the provider when tree-item selection
4//! changes (multi-select supported via `SelectedHandles`).
5//!
6//! TODO: stub. Wire `OnTreeSelectionChanged` into
7//! `CommonTreeViewProvider` so providers can drive context-specific
8//! actions or detail-view updates.
9
10use std::sync::Arc;
11
12use serde_json::{Value, json};
13use tauri::{AppHandle, State, Wry, command};
14
15use crate::{ApplicationState::State::ApplicationState::ApplicationState, dev_log};
16
17#[command]
18pub async fn OnTreeViewSelectionChanged(
19	_ApplicationHandle:AppHandle<Wry>,
20	_State:State<'_, Arc<ApplicationState>>,
21	_ViewId:String,
22	_SelectedHandles:Vec<String>,
23) -> Result<Value, String> {
24	dev_log!("commands", "warn: OnTreeViewSelectionChanged not implemented");
25	Ok(json!({ "success": false, "error": "OnTreeSelectionChanged method not implemented" }))
26}