Skip to content

Commit 9bffc26

Browse files
authored
Fix conversion key triggered in any menu (cointop-sh#289)
1 parent 0339d7f commit 9bffc26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cointop/conversion.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ func (ct *Cointop) SetCurrencyConverstion(convert string) error {
235235
func (ct *Cointop) SetCurrencyConverstionFn(convert string) func() error {
236236
log.Debug("SetCurrencyConverstionFn()")
237237
return func() error {
238+
if !ct.State.convertMenuVisible {
239+
return nil
240+
}
241+
238242
ct.HideConvertMenu()
239243

240244
if err := ct.SetCurrencyConverstion(convert); err != nil {

0 commit comments

Comments
 (0)