mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-26 13:49:21 +08:00
There is no need to switch focus to playingbar as nothing happens there
This commit is contained in:
parent
7f36efc206
commit
1bfefd61a6
17
gomu.go
17
gomu.go
@ -90,6 +90,23 @@ func (g *Gomu) cyclePanels() Panel {
|
||||
return first
|
||||
}
|
||||
|
||||
func (g *Gomu) cyclePanels2() Panel {
|
||||
first :=g.panels[0]
|
||||
second :=g.panels[1]
|
||||
if first.HasFocus() {
|
||||
g.setFocusPanel(second)
|
||||
g.prevPanel = second
|
||||
} else if second.HasFocus() {
|
||||
g.setFocusPanel(first)
|
||||
g.prevPanel = first
|
||||
} else {
|
||||
g.setFocusPanel(first)
|
||||
g.prevPanel = first
|
||||
}
|
||||
|
||||
return first
|
||||
}
|
||||
|
||||
// Changes title and border color when focusing panel
|
||||
// and changes color of the previous panel as well
|
||||
func (g *Gomu) setFocusPanel(panel Panel) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user