Skip to main content

Mountain/IPC/WindServiceHandlers/Navigation/
HistoryCanGoBack.rs

1
2//! Predicate: is the back-stack non-empty? Drives the
3//! enabled-state of the workbench's back-arrow button.
4
5use std::sync::Arc;
6
7use serde_json::Value;
8
9use crate::RunTime::ApplicationRunTime::ApplicationRunTime;
10
11pub async fn Fn(RunTime:Arc<ApplicationRunTime>) -> Result<Value, String> {
12	Ok(Value::Bool(
13		RunTime.Environment.ApplicationState.Feature.NavigationHistory.CanGoBack(),
14	))
15}