1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Fix potential race conditions in Logger

This commit is contained in:
Chris Cummer
2019-04-25 20:18:02 -07:00
parent 6e30961f25
commit e97283433f
2 changed files with 9 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ func NewWidget(app *tview.Application, settings *Settings) *Widget {
/* -------------------- Exported Functions -------------------- */
// Refresh updates the onscreen contents of the widget
func (widget *Widget) Refresh() {
widget.app.QueueUpdateDraw(func() {
sortedClocks := widget.clockColl.Sorted(widget.settings.sort)