Fix progress bar not always shown during conversion.

This commit is contained in:
Leonid Nikitin 2024-01-20 14:57:22 +06:00
parent 4fa977347c
commit 2596e822bd
Signed by: kor-elf
GPG Key ID: 7DE8F80C5CEC2C0D

View File

@ -98,7 +98,6 @@ func (v View) Main(
v.w.SetContent(widget.NewCard("Конвертор видео файлов в mp4", "", container.NewVBox(form, conversionMessage, progress))) v.w.SetContent(widget.NewCard("Конвертор видео файлов в mp4", "", container.NewVBox(form, conversionMessage, progress)))
form.Disable() form.Disable()
progress.Hide()
} }
func (v View) getButtonFileVideoForConversion(form *widget.Form, progress *widget.ProgressBar, conversionMessage *canvas.Text) (*widget.Button, *canvas.Text, *File) { func (v View) getButtonFileVideoForConversion(form *widget.Form, progress *widget.ProgressBar, conversionMessage *canvas.Text) (*widget.Button, *canvas.Text, *File) {