Skip to main content

Mountain/Command/TreeView/
PersistTreeView.rs

1#![allow(non_snake_case)]
2
3//! Tauri command - serialise tree-view state (expansion, selection,
4//! scroll position) for cross-session restore.
5//!
6//! ## Stub
7//!
8//! Wire `PersistTreeViewState` into the `CommonTreeViewProvider`
9//! trait; persist to workspace storage or `ApplicationState` so
10//! `RestoreTreeView` (sibling) can reapply.
11
12use std::sync::Arc;
13
14use serde_json::{Value, json};
15use tauri::{AppHandle, State, Wry, command};
16
17use crate::{ApplicationState::State::ApplicationState::ApplicationState, dev_log};
18
19#[command]
20pub async fn PersistTreeView(
21	_ApplicationHandle:AppHandle<Wry>,
22
23	_State:State<'_, Arc<ApplicationState>>,
24
25	_ViewId:String,
26) -> Result<Value, String> {
27	dev_log!("commands", "warn: PersistTreeView not implemented");
28
29	Ok(json!({ "success": false, "error": "PersistTreeViewState method not implemented" }))
30}