forked from Leak_Technologies/VideoTools
Guard meta update idle callback to avoid panic
This commit is contained in:
parent
32434dbc28
commit
aac6d6eb95
|
|
@ -176,7 +176,12 @@ func buildControls(win *gtk.Window, left, right *pane) *gtk.Box {
|
|||
defer t.Stop()
|
||||
for range t.C {
|
||||
text := metaSummary(left, right)
|
||||
glib.IdleAdd(func() { info.SetText(text) })
|
||||
_, _ = glib.IdleAdd(func() {
|
||||
defer func() {
|
||||
_ = recover()
|
||||
}()
|
||||
info.SetText(text)
|
||||
})
|
||||
}
|
||||
}()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user