Merge branch 'master' into fix/cmc-coin-id

pull/282/head
Simon Roberts 3 years ago committed by GitHub
commit 9a4722366f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -132,7 +132,7 @@ func (ct *Cointop) UpdateCoin(coin *Coin) error {
Slug: v.Slug,
}
ct.State.allCoinsSlugMap.Store(k, coin)
ct.State.allCoinsSlugMap.Store(coin.Name, coin)
return nil
}

@ -235,6 +235,10 @@ func (ct *Cointop) SetCurrencyConverstion(convert string) error {
func (ct *Cointop) SetCurrencyConverstionFn(convert string) func() error {
log.Debug("SetCurrencyConverstionFn()")
return func() error {
if !ct.State.convertMenuVisible {
return nil
}
ct.HideConvertMenu()
if err := ct.SetCurrencyConverstion(convert); err != nil {

Loading…
Cancel
Save