mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-26 13:49:21 +08:00
fix for panel switch
This commit is contained in:
parent
1bfefd61a6
commit
a25a584416
5
gomu.go
5
gomu.go
@ -96,15 +96,16 @@ func (g *Gomu) cyclePanels2() Panel {
|
||||
if first.HasFocus() {
|
||||
g.setFocusPanel(second)
|
||||
g.prevPanel = second
|
||||
return second
|
||||
} else if second.HasFocus() {
|
||||
g.setFocusPanel(first)
|
||||
g.prevPanel = first
|
||||
return first
|
||||
} else {
|
||||
g.setFocusPanel(first)
|
||||
g.prevPanel = first
|
||||
return first
|
||||
}
|
||||
|
||||
return first
|
||||
}
|
||||
|
||||
// Changes title and border color when focusing panel
|
||||
|
Loading…
x
Reference in New Issue
Block a user