2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-14 18:12:57 +00:00
cointop/cointop/save.go
Miguel Mota dc15523652 saving loader
Former-commit-id: f020bdc57d06a2005b704711fc4b3e5a5e1c300f [formerly f020bdc57d06a2005b704711fc4b3e5a5e1c300f [formerly c788b24445ecd99250b9bb99c0e8ca61fed209dc [formerly ac164af8b92f7beb67562106d501d220019ea2be]]]
Former-commit-id: 13fa9f5d2b56367b7f74a9552a729353179c34e4
Former-commit-id: da32569b8ccc50bfe40bd3701efff5fc7f1638ef [formerly 29de0dc1642f7416fe59f225382e58270408e037]
Former-commit-id: 54d3e42041527c426b93865d82b8f81bff5127dd
2018-04-17 19:34:54 -07:00

16 lines
240 B
Go

package cointop
func (ct *Cointop) save() error {
ct.setSavingStatus()
ct.saveConfig()
return nil
}
func (ct *Cointop) setSavingStatus() {
go func() {
ct.loadingTicks("saving", 590)
ct.updateStatusbar("")
ct.rowChanged()
}()
}