Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Command/TreeView/
RestoreTreeView.rs

1//! Tauri command - deserialise + apply tree-view state captured by
2//! `PersistTreeView` (sibling). Called when a tree view is recreated
3//! or the workspace is reloaded.
4//!
5//! ## Stub
6//!
7//! Wire `RestoreTreeViewState` into the `CommonTreeViewProvider` trait.
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 RestoreTreeView(
18	_ApplicationHandle:AppHandle<Wry>,
19
20	_State:State<'_, Arc<ApplicationState>>,
21
22	_ViewId:String,
23
24	_StateValue:Value,
25) -> Result<Value, String> {
26	dev_log!("commands", "warn: RestoreTreeView not implemented");
27
28	Ok(json!({ "success": false, "error": "RestoreTreeViewState method not implemented" }))
29}