Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Command/TreeView/
OnTreeViewSelectionChanged.rs

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