Skip to main content

Mountain/IPC/WindServiceHandlers/Navigation/
HistoryCanGoForward.rs

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