Skip to content

Commit

Permalink
ui: home_page: expand tasks in request section only
Browse files Browse the repository at this point in the history
  • Loading branch information
jjanku committed May 7, 2024
1 parent 5e91e1d commit f7e5e64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ui/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ class TaskTile<T> extends StatelessWidget {
child: ExpansionTile(
title: Text(name),
subtitle: desc != null ? Text(desc) : null,
initiallyExpanded: !finished,
initiallyExpanded: !task.archived &&
task.state != TaskState.finished &&
task.state != TaskState.failed,
leading: leading,
trailing: trailing,
childrenPadding: const EdgeInsets.symmetric(
Expand Down

0 comments on commit f7e5e64

Please sign in to comment.