From 199e896d9625c8f5da46c0ff3e45dce04ea23f05 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sat, 21 Nov 2026 18:26:52 -0700 Subject: there's a concept of module visibility so that, for example, the battery module can self-hide and self-show when batteries are added or removed. also, said module now displays a list of battery names Force-Push: yes Change-Id: I8696f1b7e914aad3b1a663af12d6a00d9861b28c --- src/module/time.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/module/time.rs') diff --git a/src/module/time.rs b/src/module/time.rs index 777afdd..3e144cf 100644 --- a/src/module/time.rs +++ b/src/module/time.rs @@ -53,5 +53,9 @@ impl Module for TimeModule { Some(Duration::from_millis(1000)) } } + + fn is_visible(&self) -> bool { + true + } } -- cgit 1.4.1