1
0
Fork 0
mirror of https://github.com/archtechx/todo-system.git synced 2025-12-12 09:04: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!(); println!();
} }
if generic_entries.len() > 0 {
write_ansi(&mut stdout, Color::White, "## Other", true); write_ansi(&mut stdout, Color::White, "## Other", true);
writeln!(stdout).unwrap(); writeln!(stdout).unwrap();
@ -121,5 +122,5 @@ pub fn render_entries(entries: Vec<Entry>) {
for item in generic_entries { for item in generic_entries {
item.render(); item.render();
} }
}
} }