Sometimes the progressbar is not displayed, so I decided not to hide it.

This commit is contained in:
Leonid Nikitin 2024-01-20 17:05:16 +06:00
parent fc38a1b20c
commit 9bb19a0263
Signed by: kor-elf
GPG Key ID: 7DE8F80C5CEC2C0D
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,8 @@ func (v View) getButtonFileVideoForConversion(form *widget.Form, progress *widge
setStringSuccessStyle(fileVideoForConversionMessage) setStringSuccessStyle(fileVideoForConversionMessage)
form.Enable() form.Enable()
progress.Hide() progress.Value = 0
progress.Refresh()
conversionMessage.Text = "" conversionMessage.Text = ""
}, v.w) }, v.w)
fileDialog.Show() fileDialog.Show()

View File

@ -153,7 +153,6 @@ func (p progress) Run(stdOut io.ReadCloser, stdErr io.ReadCloser) error {
p.progressbar.Value = 0 p.progressbar.Value = 0
p.progressbar.Max = p.totalDuration p.progressbar.Max = p.totalDuration
p.progressbar.Show()
p.progressbar.Refresh() p.progressbar.Refresh()
progress := 0.0 progress := 0.0