Skip to content

Commit

Permalink
use core.WidgetBase.Async
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 15, 2024
1 parent ff5aae8 commit 20e87a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mail/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ func (a *App) CacheMessages() error {
a.IMAPClient = map[string]*imapclient.Client{}
}
mbox := a.FindPath("splits/mbox").(*core.Tree)
mbox.AsyncLock()
mbox.DeleteChildren()
mbox.AsyncUnlock()
mbox.Async(mbox.DeleteChildren)

Check failure on line 66 in mail/cache.go

View workflow job for this annotation

GitHub Actions / build

mbox.Async undefined (type *"cogentcore.org/core/core".Tree has no field or method Async)
for _, account := range Settings.Accounts {
err := a.CacheMessagesForAccount(account)
if err != nil {
Expand Down

0 comments on commit 20e87a0

Please sign in to comment.