Update dependencies in go.sum to latest versions
This commit removes outdated dependencies and adds updated versions of required modules in the `go.sum` file. The changes ensure the project uses the latest compatible releases, improving stability and maintaining compatibility with current updates.
This commit is contained in:
@@ -118,15 +118,16 @@ func (o QueueLayoutObject) GetProgressbar(queueId int) *widget.ProgressBar {
|
||||
|
||||
func (o QueueLayoutObject) Add(id int, queue *Queue) {
|
||||
progressBar := widget.NewProgressBar()
|
||||
statusMessage := canvas.NewText(o.getStatusTitle(queue.Status), theme.PrimaryColor())
|
||||
messageError := canvas.NewText("", theme.ErrorColor())
|
||||
|
||||
statusMessage := canvas.NewText(o.getStatusTitle(queue.Status), theme.Color(theme.ColorNamePrimary))
|
||||
messageError := canvas.NewText("", theme.Color(theme.ColorNameError))
|
||||
|
||||
content := container.NewVBox(
|
||||
container.NewHScroll(widget.NewLabel(queue.Setting.VideoFileInput.Name)),
|
||||
progressBar,
|
||||
container.NewHScroll(statusMessage),
|
||||
container.NewHScroll(messageError),
|
||||
canvas.NewLine(theme.FocusColor()),
|
||||
canvas.NewLine(theme.Color(theme.ColorNameFocus)),
|
||||
container.NewPadded(),
|
||||
)
|
||||
|
||||
@@ -158,11 +159,15 @@ func (o QueueLayoutObject) ChangeQueueStatus(queueId int, queue *Queue) {
|
||||
statusColor := o.getStatusColor(queue.Status)
|
||||
item.StatusMessage.Text = o.getStatusTitle(queue.Status)
|
||||
item.StatusMessage.Color = statusColor
|
||||
item.StatusMessage.Refresh()
|
||||
fyne.Do(func() {
|
||||
item.StatusMessage.Refresh()
|
||||
})
|
||||
if queue.Error != nil {
|
||||
item.MessageError.Text = queue.Error.Error()
|
||||
item.MessageError.Color = statusColor
|
||||
item.MessageError.Refresh()
|
||||
fyne.Do(func() {
|
||||
item.MessageError.Refresh()
|
||||
})
|
||||
}
|
||||
if o.queueStatisticsFormat.isChecked(queue.Status) == false && item.CanvasObject.Visible() == true {
|
||||
item.CanvasObject.Hide()
|
||||
@@ -175,14 +180,14 @@ func (o QueueLayoutObject) ChangeQueueStatus(queueId int, queue *Queue) {
|
||||
|
||||
func (o QueueLayoutObject) getStatusColor(status StatusContract) color.Color {
|
||||
if status == StatusType(Error) {
|
||||
return theme.ErrorColor()
|
||||
return theme.Color(theme.ColorNameError)
|
||||
}
|
||||
|
||||
if status == StatusType(Completed) {
|
||||
return color.RGBA{R: 49, G: 127, B: 114, A: 255}
|
||||
}
|
||||
|
||||
return theme.PrimaryColor()
|
||||
return theme.Color(theme.ColorNamePrimary)
|
||||
}
|
||||
|
||||
func (o QueueLayoutObject) getStatusTitle(status StatusContract) string {
|
||||
@@ -215,8 +220,9 @@ func (p Progress) Run(stdOut io.ReadCloser, stdErr io.ReadCloser) error {
|
||||
|
||||
p.progressbar.Value = 0
|
||||
p.progressbar.Max = p.totalDuration
|
||||
p.progressbar.Refresh()
|
||||
|
||||
fyne.Do(func() {
|
||||
p.progressbar.Refresh()
|
||||
})
|
||||
progress := 0.0
|
||||
|
||||
go func() {
|
||||
@@ -246,7 +252,9 @@ func (p Progress) Run(stdOut io.ReadCloser, stdErr io.ReadCloser) error {
|
||||
data := strings.TrimSpace(string(line))
|
||||
if strings.Contains(data, "progress=end") {
|
||||
p.progressbar.Value = p.totalDuration
|
||||
p.progressbar.Refresh()
|
||||
fyne.Do(func() {
|
||||
p.progressbar.Refresh()
|
||||
})
|
||||
isProcessCompleted = true
|
||||
break
|
||||
}
|
||||
@@ -263,7 +271,9 @@ func (p Progress) Run(stdOut io.ReadCloser, stdErr io.ReadCloser) error {
|
||||
}
|
||||
if p.progressbar.Value != progress {
|
||||
p.progressbar.Value = progress
|
||||
p.progressbar.Refresh()
|
||||
fyne.Do(func() {
|
||||
p.progressbar.Refresh()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -529,6 +539,8 @@ func (s queueStatistics) remove() {
|
||||
func (s queueStatistics) formatText(refresh bool) {
|
||||
s.widget.Text = s.title + ": " + strconv.FormatInt(*s.count, 10)
|
||||
if refresh == true {
|
||||
s.widget.Refresh()
|
||||
fyne.Do(func() {
|
||||
s.widget.Refresh()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@@ -26,7 +26,7 @@ func newWindow(w fyne.Window, layout LayoutContract) Window {
|
||||
w.Resize(windowSize)
|
||||
w.CenterOnScreen()
|
||||
|
||||
go func() {
|
||||
fyne.Do(func() {
|
||||
/**
|
||||
* Bug fixed.
|
||||
* When starting the program, sometimes the window was displayed incorrectly.
|
||||
@@ -35,7 +35,7 @@ func newWindow(w fyne.Window, layout LayoutContract) Window {
|
||||
windowSize.Height += 1
|
||||
time.Sleep(time.Millisecond * 500)
|
||||
w.Resize(windowSize)
|
||||
}()
|
||||
})
|
||||
|
||||
return Window{
|
||||
windowFyne: w,
|
||||
@@ -44,7 +44,9 @@ func newWindow(w fyne.Window, layout LayoutContract) Window {
|
||||
}
|
||||
|
||||
func (w Window) SetContent(content fyne.CanvasObject) {
|
||||
w.windowFyne.SetContent(w.layout.SetContent(content))
|
||||
fyne.Do(func() {
|
||||
w.windowFyne.SetContent(w.layout.SetContent(content))
|
||||
})
|
||||
}
|
||||
|
||||
func (w Window) NewFileOpen(callback func(fyne.URIReadCloser, error), location fyne.ListableURI) *dialog.FileDialog {
|
||||
|
Reference in New Issue
Block a user