Fix conversion key triggered in any menu

pull/289/head
Vuong 3 years ago
parent fdc9664842
commit ce2730d437
No known key found for this signature in database
GPG Key ID: 9E32EEF440B0A5D4

@ -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