Skip to main content

Mountain/Command/TreeView/
RestoreTreeView.rs

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