Fix history sidebar titles and delete handling

This commit is contained in:
Stu Leak 2026-01-10 01:28:09 -05:00
parent e6d23ef427
commit 3cee42d041
2 changed files with 10 additions and 2 deletions

10
main.go
View File

@ -1428,6 +1428,14 @@ Config:
}
func (s *appState) deleteHistoryEntry(entry ui.HistoryEntry) {
if entry.Status == queue.JobStatusRunning || entry.Status == queue.JobStatusPending {
return
}
if s.jobQueue != nil {
_ = s.jobQueue.Remove(entry.ID)
}
// Remove entry from history
var updated []ui.HistoryEntry
for _, e := range s.historyEntries {
@ -1444,7 +1452,7 @@ func (s *appState) deleteHistoryEntry(entry ui.HistoryEntry) {
}
// Refresh main menu to update sidebar
s.showMainMenu()
s.refreshMainMenuThrottled()
}
func (s *appState) stopPreview() {

View File

@ -635,7 +635,7 @@ func (s *appState) createThumbJobForPath(path string) *queue.Job {
return &queue.Job{
Type: queue.JobTypeThumb,
Title: "Thumbnails: " + filepath.Base(path),
Title: filepath.Base(path),
Description: description,
InputFile: path,
OutputFile: outputFile,