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
This commit is contained in:
parent
f001796f03
commit
00443c4a3a
|
|
@ -537,10 +537,8 @@ func (s *appState) handleSubtitlesModuleDrop(items []fyne.URI) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Refresh the view to show the loaded files
|
// Switch to subtitles module to show the loaded files
|
||||||
if s.active == "subtitles" {
|
s.showModule("subtitles")
|
||||||
s.showSubtitlesView()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *appState) loadSubtitleFile(path string) error {
|
func (s *appState) loadSubtitleFile(path string) error {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user