diff --git a/internal/modules/handlers.go b/internal/modules/handlers.go index 6d185ac..0cd9093 100644 --- a/internal/modules/handlers.go +++ b/internal/modules/handlers.go @@ -5,7 +5,6 @@ import ( "fyne.io/fyne/v2" "fyne.io/fyne/v2/dialog" - "git.leaktechnologies.dev/stu/VideoTools/internal/logging" ) @@ -97,14 +96,19 @@ func HandlePlayer(files []string) { } func HandleEnhance(files []string) { + // Enhancement module not ready yet - show placeholder logging.Debug(logging.CatModule, "enhance handler invoked with %v", files) + fmt.Println("enhance", files) + if len(files) > 0 { dialog.ShowInformation("Enhancement", "Opening multiple files not supported yet. Select single video for enhancement.", fyne.CurrentApp().Driver().AllWindows()[0]) return } if len(files) == 1 { - // TODO: Launch enhancement view with selected file - dialog.ShowInformation("Enhancement", "Enhancement module coming soon! This will open: "+files[0], fyne.CurrentApp().Driver().AllWindows()[0]) + // Show coming soon message + dialog.ShowInformation("Enhancement", + fmt.Sprintf("Enhancement module coming soon!\n\nSelected file: %s\n\nThis feature will be available in a future update.", files[0]), + fyne.CurrentApp().Driver().AllWindows()[0]) } } diff --git a/internal/ui/components.go b/internal/ui/components.go index 6f5f696..12605a2 100644 --- a/internal/ui/components.go +++ b/internal/ui/components.go @@ -1169,9 +1169,14 @@ func (cs *ColoredSelect) showPopup() { if cs.onChanged != nil { cs.onChanged(opt) } - cs.popup.Hide() - cs.popup = nil - cs.Refresh() + // Hide popup after a short delay to allow the selection to be processed + time.AfterFunc(50*time.Millisecond, func() { + if cs.popup != nil { + cs.popup.Hide() + cs.popup = nil + cs.Refresh() + } + }) }) items[i] = tappableItem