Windows OS fix.

This commit is contained in:
Leonid Nikitin 2024-02-17 20:04:11 +06:00
parent 0d05fdb307
commit 240ae7aa96
Signed by: kor-elf
GPG Key ID: 3C0F720C170F6E1D
2 changed files with 6 additions and 6 deletions

View File

@ -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(

View File

@ -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()