Skip to content

Commit 7c742fd

Browse files
committed
feat: select first job on launch
1 parent a12a403 commit 7c742fd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/app.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ impl App {
6565
focus: Focus::Jobs,
6666
jobs: Vec::new(),
6767
_job_watcher: JobWatcherHandle::new(sender.clone(), Duration::from_secs(2)),
68-
job_list_state: ListState::default(),
68+
job_list_state: {
69+
let mut s = ListState::default();
70+
s.select(Some(0));
71+
s
72+
},
6973
job_stdout: Ok("".to_string()),
7074
job_stdout_offset: 0,
7175
job_stdout_watcher: FileWatcherHandle::new(sender.clone(), Duration::from_secs(2)),

0 commit comments

Comments
 (0)