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:
parent
d4bf97ce12
commit
ea031d81f0
1 changed files with 7 additions and 6 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue