1
0
Fork 0
mirror of https://github.com/archtechx/todo-system.git synced 2025-12-12 00:54:03 +00:00

render: only show Other section if there are any entries

This commit is contained in:
Samuel Štancl 2025-09-13 22:21:48 +02:00
parent d4bf97ce12
commit ea031d81f0

View file

@ -113,6 +113,7 @@ pub fn render_entries(entries: Vec<Entry>) {
println!();
}
if generic_entries.len() > 0 {
write_ansi(&mut stdout, Color::White, "## Other", true);
writeln!(stdout).unwrap();
@ -121,5 +122,5 @@ pub fn render_entries(entries: Vec<Entry>) {
for item in generic_entries {
item.render();
}
}
}