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