Return to last module after clear all
This commit is contained in:
parent
63804f7475
commit
aa659b80f5
9
main.go
9
main.go
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user