From fe821634f422520d305ba8479948b7065c3aa22a Mon Sep 17 00:00:00 2001 From: Kai O'Reilly Date: Thu, 18 Jul 2024 11:54:46 -0700 Subject: [PATCH] update to more core cleanup --- mail/cache.go | 4 +++- numbers/random/random.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mail/cache.go b/mail/cache.go index 2a08997d..4d8be215 100644 --- a/mail/cache.go +++ b/mail/cache.go @@ -63,7 +63,9 @@ func (a *App) CacheMessages() error { a.IMAPClient = map[string]*imapclient.Client{} } mbox := a.FindPath("splits/mbox").(*core.Tree) - mbox.Async(mbox.DeleteChildren) + mbox.AsyncLock() + mbox.DeleteChildren() + mbox.AsyncUnlock() for _, account := range Settings.Accounts { err := a.CacheMessagesForAccount(account) if err != nil { diff --git a/numbers/random/random.go b/numbers/random/random.go index 74b070c2..09ebf2ee 100644 --- a/numbers/random/random.go +++ b/numbers/random/random.go @@ -114,7 +114,7 @@ func (rd *Random) ConfigTable(dt *table.Table) { func (rd *Random) ConfigPlot(plt *plotcore.PlotEditor, dt *table.Table) *plotcore.PlotEditor { plt.Options.Title = "Random distribution histogram" - plt.Options.XAxisColumn = "Value" + plt.Options.XAxis = "Value" plt.Options.Type = plotcore.Bar plt.Options.XAxisRotation = 45 plt.SetTable(dt)