Return to last module after clear all

This commit is contained in:
Stu Leak 2025-12-24 02:53:24 -05:00
parent 63804f7475
commit aa659b80f5

View File

@ -1767,9 +1767,12 @@ func (s *appState) refreshQueueView() {
},
func() { // onClearAll
s.jobQueue.ClearAll()
s.clearVideo()
// Always return to main menu after clearing all
s.showMainMenu()
// Return to the module we were working on if possible
if s.lastModule != "" && s.lastModule != "queue" && s.lastModule != "menu" {
s.showModule(s.lastModule)
} else {
s.showMainMenu()
}
},
func(id string) { // onCopyError
job, err := s.jobQueue.Get(id)