From 240ae7aa96bc96db819e59f75ddfbd586326da0a Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sat, 17 Feb 2024 20:04:11 +0600 Subject: [PATCH] Windows OS fix. --- convertor/view_setting_button_download_ffmpeg_windows.go | 6 +++--- handler/convertor_windows.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/convertor/view_setting_button_download_ffmpeg_windows.go b/convertor/view_setting_button_download_ffmpeg_windows.go index a573284..2dcb47a 100644 --- a/convertor/view_setting_button_download_ffmpeg_windows.go +++ b/convertor/view_setting_button_download_ffmpeg_windows.go @@ -29,7 +29,7 @@ func (v View) blockDownloadFFmpeg( var buttonDownloadFFmpeg *widget.Button - buttonDownloadFFmpeg = widget.NewButton(v.localizerService.GetMessage(&i18n.LocalizeConfig{ + buttonDownloadFFmpeg = widget.NewButton(v.app.GetLocalizerService().GetMessage(&i18n.LocalizeConfig{ MessageID: "download", }), func() { buttonDownloadFFmpeg.Disable() @@ -42,13 +42,13 @@ func (v View) blockDownloadFFmpeg( buttonDownloadFFmpeg.Enable() }) - downloadFFmpegFromSiteMessage := v.localizerService.GetMessage(&i18n.LocalizeConfig{ + downloadFFmpegFromSiteMessage := v.app.GetLocalizerService().GetMessage(&i18n.LocalizeConfig{ MessageID: "downloadFFmpegFromSite", }) return container.NewVBox( canvas.NewLine(colornames.Darkgreen), - widget.NewCard(v.localizerService.GetMessage(&i18n.LocalizeConfig{ + widget.NewCard(v.app.GetLocalizerService().GetMessage(&i18n.LocalizeConfig{ MessageID: "buttonDownloadFFmpeg", }), "", container.NewVBox( widget.NewRichTextFromMarkdown( diff --git a/handler/convertor_windows.go b/handler/convertor_windows.go index 14984fc..9ea6702 100644 --- a/handler/convertor_windows.go +++ b/handler/convertor_windows.go @@ -29,7 +29,7 @@ func (h ConvertorHandler) downloadFFmpeg(progressBar *widget.ProgressBar, progre return err } } - progressMessage.Text = h.localizerService.GetMessage(&i18n.LocalizeConfig{ + progressMessage.Text = h.app.GetLocalizerService().GetMessage(&i18n.LocalizeConfig{ MessageID: "downloadRun", }) progressMessage.Refresh() @@ -38,7 +38,7 @@ func (h ConvertorHandler) downloadFFmpeg(progressBar *widget.ProgressBar, progre return err } - progressMessage.Text = h.localizerService.GetMessage(&i18n.LocalizeConfig{ + progressMessage.Text = h.app.GetLocalizerService().GetMessage(&i18n.LocalizeConfig{ MessageID: "unzipRun", }) progressMessage.Refresh() @@ -48,7 +48,7 @@ func (h ConvertorHandler) downloadFFmpeg(progressBar *widget.ProgressBar, progre } _ = os.Remove("ffmpeg/ffmpeg.zip") - progressMessage.Text = h.localizerService.GetMessage(&i18n.LocalizeConfig{ + progressMessage.Text = h.app.GetLocalizerService().GetMessage(&i18n.LocalizeConfig{ MessageID: "testFF", }) progressMessage.Refresh()