Skip to content

Commit

Permalink
update to more core cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jul 18, 2024
1 parent 3e05b35 commit fe82163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mail/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion numbers/random/random.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Check failure on line 117 in numbers/random/random.go

View workflow job for this annotation

GitHub Actions / build

plt.Options.XAxis undefined (type plotcore.PlotOptions has no field or method XAxis)
plt.Options.Type = plotcore.Bar
plt.Options.XAxisRotation = 45
plt.SetTable(dt)
Expand Down

0 comments on commit fe82163

Please sign in to comment.