Mountain/IPC/WindServiceHandlers/Navigation/HistoryCanGoForward.rs
1//! Predicate: is the forward-stack non-empty? Twin of
2//! `HistoryCanGoBack`.
3
4use std::sync::Arc;
5
6use serde_json::Value;
7
8use crate::RunTime::ApplicationRunTime::ApplicationRunTime;
9
10pub async fn Fn(RunTime:Arc<ApplicationRunTime>) -> Result<Value, String> {
11 Ok(Value::Bool(
12 RunTime.Environment.ApplicationState.Feature.NavigationHistory.CanGoForward(),
13 ))
14}