Open queue when clicking active history jobs

This commit is contained in:
Stu Leak 2026-01-10 05:12:36 -05:00
parent 8bad3d30c1
commit bc56642d3b

View File

@ -1970,10 +1970,17 @@ func (s *appState) showMainMenu() {
}
}
onHistoryClick := func(entry ui.HistoryEntry) {
if entry.Status == queue.JobStatusRunning || entry.Status == queue.JobStatusPending {
s.showQueue()
return
}
s.showHistoryDetails(entry)
}
sidebar = ui.BuildHistorySidebar(
s.historyEntries,
activeJobs,
s.showHistoryDetails,
onHistoryClick,
s.deleteHistoryEntry,
s.clearHistoryEntries,
s.historyTabIdx,