fix for panel switch

This commit is contained in:
tramhao 2021-01-28 15:00:02 +08:00
parent 1bfefd61a6
commit a25a584416

View File

@ -96,15 +96,16 @@ func (g *Gomu) cyclePanels2() Panel {
if first.HasFocus() { if first.HasFocus() {
g.setFocusPanel(second) g.setFocusPanel(second)
g.prevPanel = second g.prevPanel = second
return second
} else if second.HasFocus() { } else if second.HasFocus() {
g.setFocusPanel(first) g.setFocusPanel(first)
g.prevPanel = first g.prevPanel = first
return first
} else { } else {
g.setFocusPanel(first) g.setFocusPanel(first)
g.prevPanel = first g.prevPanel = first
return first
} }
return first
} }
// Changes title and border color when focusing panel // Changes title and border color when focusing panel