docs(bar): add a position.end.y val warning

For dummies like me who set this to 0.0 and then wonder why the bar
disappears on config change.
This commit is contained in:
LGUG2Z
2024-11-19 19:42:23 -08:00
parent ac243c6992
commit 8de92ec32a

View File

@@ -178,6 +178,10 @@ impl Komobar {
y: BAR_HEIGHT,
});
if end.y == 0.0 {
tracing::warn!("position.end.y is set to 0.0 which will make your bar invisible on a config reload - this is usually set to 50.0 by default")
}
let rect = komorebi_client::Rect {
left: start.x as i32,
top: start.y as i32,