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
|
func() { // onClearAll
|
||||||
s.jobQueue.ClearAll()
|
s.jobQueue.ClearAll()
|
||||||
s.clearVideo()
|
// Return to the module we were working on if possible
|
||||||
// Always return to main menu after clearing all
|
if s.lastModule != "" && s.lastModule != "queue" && s.lastModule != "menu" {
|
||||||
s.showMainMenu()
|
s.showModule(s.lastModule)
|
||||||
|
} else {
|
||||||
|
s.showMainMenu()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
func(id string) { // onCopyError
|
func(id string) { // onCopyError
|
||||||
job, err := s.jobQueue.Get(id)
|
job, err := s.jobQueue.Get(id)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user