mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Remove the unnecessary mutex from gcal
This commit is contained in:
parent
ac87145749
commit
d77415783a
@ -29,9 +29,6 @@ func (widget *Widget) display() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
widget.mutex.Lock()
|
|
||||||
defer widget.mutex.Unlock()
|
|
||||||
|
|
||||||
widget.View.SetTitle(widget.ContextualTitle(widget.settings.common.Title))
|
widget.View.SetTitle(widget.ContextualTitle(widget.settings.common.Title))
|
||||||
widget.View.SetText(widget.contentFrom(widget.calEvents))
|
widget.View.SetText(widget.contentFrom(widget.calEvents))
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package gcal
|
package gcal
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/rivo/tview"
|
"github.com/rivo/tview"
|
||||||
@ -14,7 +13,6 @@ type Widget struct {
|
|||||||
app *tview.Application
|
app *tview.Application
|
||||||
calEvents []*CalEvent
|
calEvents []*CalEvent
|
||||||
ch chan struct{}
|
ch chan struct{}
|
||||||
mutex sync.Mutex
|
|
||||||
settings *Settings
|
settings *Settings
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user