mirror of
https://github.com/miguelmota/cointop
synced 2024-11-05 00:00:14 +00:00
Table view nil check
This commit is contained in:
parent
e0eaf60329
commit
38b279083f
@ -67,7 +67,9 @@ func (ct *Cointop) RefreshTable() error {
|
||||
ct.UpdateUI(func() error {
|
||||
ct.Views.Table.Clear()
|
||||
if statusText == "" {
|
||||
ct.table.Format().Fprint(ct.Views.Table.Backing())
|
||||
if ct.Views.Table.HasBacking() {
|
||||
ct.table.Format().Fprint(ct.Views.Table.Backing())
|
||||
}
|
||||
} else {
|
||||
ct.Views.Table.Update(fmt.Sprintf("\n\n%s", statusText))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user