This commit is contained in:
2026-09-13 14:37:59 +01:00
parent b81eb967ee
commit 74f59be3f8
11 changed files with 87 additions and 37 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
use std::error::Error;
use common::{BarModule, Endpoint, ModuleEffect, Service, WeatherKind, Wire};
use common::{BarModule, Endpoint, ModuleEffect, Service, WeatherKind, WeatherMsg, Wire};
use iced::{
widget::{container, mouse_area, text},
Element, Task,
@@ -43,7 +43,7 @@ impl BarModule for WeatherModule {
/// Route keys this module subscribes to.
fn services(&self) -> Vec<Service> {
vec![]
vec![WeatherMsg::State.key()]
}
/// Optional: read `module.weather` from the config table.