Skip to main content

Mountain/Command/TreeView/
RestoreTreeView.rs

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