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//! ## Stub
7//!
8//! Wire `OnTreeSelectionChanged` into `CommonTreeViewProvider` so
9//! providers can drive context-specific actions or detail-view updates.
10
11use std::sync::Arc;
12
13use serde_json::{Value, json};
14use tauri::{AppHandle, State, Wry, command};
15
16use crate::{ApplicationState::State::ApplicationState::ApplicationState, dev_log};
17
18#[command]
19pub async fn OnTreeViewSelectionChanged(
20	_ApplicationHandle:AppHandle<Wry>,
21
22	_State:State<'_, Arc<ApplicationState>>,
23
24	_ViewId:String,
25
26	_SelectedHandles:Vec<String>,
27) -> Result<Value, String> {
28	dev_log!("commands", "warn: OnTreeViewSelectionChanged not implemented");
29
30	Ok(json!({ "success": false, "error": "OnTreeSelectionChanged method not implemented" }))
31}