Sometimes the progressbar is not displayed, so I decided not to hide it.
This commit is contained in:
parent
fc38a1b20c
commit
9bb19a0263
@ -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()
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user