propegate colorblind mode beyond start/stop

This commit is contained in:
Cooper Quintin
2024-11-25 15:49:21 -08:00
committed by Will Greenberg
parent 15f128add1
commit 95e8f846d3
4 changed files with 14 additions and 2 deletions

View File

@@ -22,7 +22,8 @@ pub struct ServerState {
pub ui_update_sender: Sender<framebuffer::DisplayState>,
pub analysis_status_lock: Arc<RwLock<AnalysisStatus>>,
pub analysis_sender: Sender<AnalysisCtrlMessage>,
pub debug_mode: bool
pub debug_mode: bool,
pub colorblind_mode: bool,
}
pub async fn get_qmdl(State(state): State<Arc<ServerState>>, Path(qmdl_name): Path<String>) -> Result<Response, (StatusCode, String)> {