Fix 'Clear All' queue button to return to previous module
Changed 'Clear All' behavior to return to the last active module instead of always going to main menu. Falls back to main menu if no previous module is tracked or if coming from queue itself.
This commit is contained in:
parent
148d9ede18
commit
ac59fad380
8
main.go
8
main.go
|
|
@ -1126,8 +1126,12 @@ func (s *appState) refreshQueueView() {
|
|||
func() { // onClearAll
|
||||
s.jobQueue.ClearAll()
|
||||
s.clearVideo()
|
||||
// Return to main menu after clearing everything to avoid dangling in queue
|
||||
s.showMainMenu()
|
||||
// Return to previous module or main menu
|
||||
if s.lastModule != "" && s.lastModule != "queue" {
|
||||
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