mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-28 13:48:53 +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() {
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user