diff --git a/main.go b/main.go index 88775ce..07cb1d4 100644 --- a/main.go +++ b/main.go @@ -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() { diff --git a/thumb_module.go b/thumb_module.go index 2b348ea..f63ad45 100644 --- a/thumb_module.go +++ b/thumb_module.go @@ -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,