Skip to main content

Mountain/IPC/WindServiceHandlers/Navigation/
HistoryCanGoForward.rs

1
2//! Predicate: is the forward-stack non-empty? Twin of
3//! `HistoryCanGoBack`.
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.CanGoForward(),
14	))
15}