Skip to content

Commit

Permalink
Changes to support updating the ffmpeg path from the settings tab #2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexballas committed Aug 24, 2024
1 parent 7eccb00 commit 024a6b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@ func Start(ctx context.Context, s *NewScreen) {
tabs.OnSelected = func(t *container.TabItem) {
s.TranscodeCheckBox.Enable()
if err := utils.CheckFFmpeg(s.ffmpegPath); err != nil {
s.TranscodeCheckBox.SetChecked(false)
s.TranscodeCheckBox.Disable()
s.SelectInternalSubs.Options = []string{}
s.SelectInternalSubs.PlaceHolder = "No Embedded Subs"
s.SelectInternalSubs.ClearSelected()
s.SelectInternalSubs.Disable()
}

if t.Text == "Go2TV" {
Expand Down

0 comments on commit 024a6b5

Please sign in to comment.