Skip to main content

Mountain/Command/TreeView/
PersistTreeView.rs

1
2//! Tauri command - serialise tree-view state (expansion, selection,
3//! scroll position) for cross-session restore.
4//!
5//! ## Stub
6//!
7//! Wire `PersistTreeViewState` into the `CommonTreeViewProvider`
8//! trait; persist to workspace storage or `ApplicationState` so
9//! `RestoreTreeView` (sibling) can reapply.
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 PersistTreeView(
20	_ApplicationHandle:AppHandle<Wry>,
21
22	_State:State<'_, Arc<ApplicationState>>,
23
24	_ViewId:String,
25) -> Result<Value, String> {
26	dev_log!("commands", "warn: PersistTreeView not implemented");
27
28	Ok(json!({ "success": false, "error": "PersistTreeViewState method not implemented" }))
29}