Fix history sidebar titles and delete handling
This commit is contained in:
parent
e6d23ef427
commit
3cee42d041
10
main.go
10
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() {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user