Fix conversion key triggered in any menu (#289)

pull/288/head^2
Vuong 2 years ago committed by GitHub
parent 0339d7f6c3
commit 9bffc26035
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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