Mountain/IPC/WindServiceHandlers/Navigation/HistoryClear.rs
1
2//! Wipe both the back- and forward-stacks. Issued on workspace
3//! close / reload so a stale URL list doesn't leak into the next
4//! session.
5
6use std::sync::Arc;
7
8use serde_json::Value;
9
10use crate::RunTime::ApplicationRunTime::ApplicationRunTime;
11
12pub async fn Fn(RunTime:Arc<ApplicationRunTime>) -> Result<Value, String> {
13 RunTime.Environment.ApplicationState.Feature.NavigationHistory.Clear();
14
15 Ok(Value::Null)
16}