From b65303ede0750e9d83df4d2c5df67f143c9171c4 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Wed, 25 Nov 2026 03:40:14 -0700 Subject: i3 mode module fully works now; some API changes most notably, modules now have a way to request immediate redrawing Change-Id: Id060c88d3ab484addfd8ca574fbc4e2ffdbb5c8f Force-Push: yes --- src/module/battery.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/module/battery.rs') diff --git a/src/module/battery.rs b/src/module/battery.rs index d276a9c..81733b8 100644 --- a/src/module/battery.rs +++ b/src/module/battery.rs @@ -5,6 +5,7 @@ use crate::module::{ CreatableModule, Module }; use std::time::Duration; +use async_channel::Sender; use async_executor::StaticExecutor; @@ -18,7 +19,8 @@ impl CreatableModule for BatteryModule { const REQUIRED_FACILITIES: FacilityType = FacilityType::ENVSYS; async fn new(facilities: &mut FacilityMap, - _executor: &'static StaticExecutor) + _executor: &'static StaticExecutor, + _redraw_sender: Sender<()>) -> Result { let envsys: &mut EnvSys = facilities.get().ok_or(Error::custom( -- cgit 1.4.1