From 3be5857cbbc84b43652a5a5ef8a51e966493424e Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Fri, 26 Dec 2025 21:00:06 -0500 Subject: [PATCH] Fix subtitle module not switching view on drop from main menu - Changed handleSubtitlesModuleDrop to call showModule("subtitles") - Previously only refreshed if already in subtitles view (s.active == "subtitles") - When dropping from main menu, s.active was "mainmenu", so view never switched - Now matches behavior of compare and inspect modules - Video path will now properly populate when dragging from main menu Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- subtitles_module.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/subtitles_module.go b/subtitles_module.go index fcde5d5..a6add9f 100644 --- a/subtitles_module.go +++ b/subtitles_module.go @@ -537,10 +537,8 @@ func (s *appState) handleSubtitlesModuleDrop(items []fyne.URI) { } } - // Refresh the view to show the loaded files - if s.active == "subtitles" { - s.showSubtitlesView() - } + // Switch to subtitles module to show the loaded files + s.showModule("subtitles") } func (s *appState) loadSubtitleFile(path string) error {