Mountain/IPC/WindServiceHandlers/UI/WorkingCopyGetDirtyCount.rs
1//! Wire method: `workingCopy:getDirtyCount`.
2
3use std::sync::Arc;
4
5use serde_json::{Value, json};
6
7use crate::RunTime::ApplicationRunTime::ApplicationRunTime;
8
9pub async fn Fn(RunTime:Arc<ApplicationRunTime>) -> Result<Value, String> {
10 let Count = RunTime.Environment.ApplicationState.Feature.WorkingCopy.GetDirtyCount();
11
12 Ok(json!(Count))
13}