Windows OS fix.
This commit is contained in:
parent
0d05fdb307
commit
240ae7aa96
@ -29,7 +29,7 @@ func (v View) blockDownloadFFmpeg(
|
|||||||
|
|
||||||
var buttonDownloadFFmpeg *widget.Button
|
var buttonDownloadFFmpeg *widget.Button
|
||||||
|
|
||||||
buttonDownloadFFmpeg = widget.NewButton(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
buttonDownloadFFmpeg = widget.NewButton(v.app.GetLocalizerService().GetMessage(&i18n.LocalizeConfig{
|
||||||
MessageID: "download",
|
MessageID: "download",
|
||||||
}), func() {
|
}), func() {
|
||||||
buttonDownloadFFmpeg.Disable()
|
buttonDownloadFFmpeg.Disable()
|
||||||
@ -42,13 +42,13 @@ func (v View) blockDownloadFFmpeg(
|
|||||||
buttonDownloadFFmpeg.Enable()
|
buttonDownloadFFmpeg.Enable()
|
||||||
})
|
})
|
||||||
|
|
||||||
downloadFFmpegFromSiteMessage := v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
downloadFFmpegFromSiteMessage := v.app.GetLocalizerService().GetMessage(&i18n.LocalizeConfig{
|
||||||
MessageID: "downloadFFmpegFromSite",
|
MessageID: "downloadFFmpegFromSite",
|
||||||
})
|
})
|
||||||
|
|
||||||
return container.NewVBox(
|
return container.NewVBox(
|
||||||
canvas.NewLine(colornames.Darkgreen),
|
canvas.NewLine(colornames.Darkgreen),
|
||||||
widget.NewCard(v.localizerService.GetMessage(&i18n.LocalizeConfig{
|
widget.NewCard(v.app.GetLocalizerService().GetMessage(&i18n.LocalizeConfig{
|
||||||
MessageID: "buttonDownloadFFmpeg",
|
MessageID: "buttonDownloadFFmpeg",
|
||||||
}), "", container.NewVBox(
|
}), "", container.NewVBox(
|
||||||
widget.NewRichTextFromMarkdown(
|
widget.NewRichTextFromMarkdown(
|
||||||
|
@ -29,7 +29,7 @@ func (h ConvertorHandler) downloadFFmpeg(progressBar *widget.ProgressBar, progre
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
progressMessage.Text = h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
progressMessage.Text = h.app.GetLocalizerService().GetMessage(&i18n.LocalizeConfig{
|
||||||
MessageID: "downloadRun",
|
MessageID: "downloadRun",
|
||||||
})
|
})
|
||||||
progressMessage.Refresh()
|
progressMessage.Refresh()
|
||||||
@ -38,7 +38,7 @@ func (h ConvertorHandler) downloadFFmpeg(progressBar *widget.ProgressBar, progre
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
progressMessage.Text = h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
progressMessage.Text = h.app.GetLocalizerService().GetMessage(&i18n.LocalizeConfig{
|
||||||
MessageID: "unzipRun",
|
MessageID: "unzipRun",
|
||||||
})
|
})
|
||||||
progressMessage.Refresh()
|
progressMessage.Refresh()
|
||||||
@ -48,7 +48,7 @@ func (h ConvertorHandler) downloadFFmpeg(progressBar *widget.ProgressBar, progre
|
|||||||
}
|
}
|
||||||
_ = os.Remove("ffmpeg/ffmpeg.zip")
|
_ = os.Remove("ffmpeg/ffmpeg.zip")
|
||||||
|
|
||||||
progressMessage.Text = h.localizerService.GetMessage(&i18n.LocalizeConfig{
|
progressMessage.Text = h.app.GetLocalizerService().GetMessage(&i18n.LocalizeConfig{
|
||||||
MessageID: "testFF",
|
MessageID: "testFF",
|
||||||
})
|
})
|
||||||
progressMessage.Refresh()
|
progressMessage.Refresh()
|
||||||
|
Loading…
Reference in New Issue
Block a user