Skip to content

Commit

Permalink
show only uncompleted tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvladus committed May 10, 2024
1 parent 8fd531a commit 6a85a6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion errands/widgets/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ def _build_ui(self) -> None:
lines=5,
wrap_mode=0,
wrap=True,
max_width_chars=30,
max_width_chars=20,
margin_bottom=6,
margin_top=6,
margin_end=3,
margin_start=3,
)
),
)
Expand Down
3 changes: 2 additions & 1 deletion errands/widgets/task_list/task_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,9 @@ def update_title(self) -> None:
)

# Update sidebar item counter
n_uncompleted: int = n_total - n_completed
self.sidebar_row.size_counter.set_label(
f"{n_completed} / {n_total}" if n_total > 0 else ""
str(n_uncompleted) if n_uncompleted > 0 else ""
)

# Update delete completed button
Expand Down

0 comments on commit 6a85a6b

Please sign in to comment.