From aa659b80f570b14f074f9fdf61e8427967ecc545 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Wed, 24 Dec 2025 02:53:24 -0500 Subject: [PATCH] Return to last module after clear all --- main.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 31a2680..1a2b0fb 100644 --- a/main.go +++ b/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)