mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-28 13:48:53 +08:00
small refactor
This commit is contained in:
parent
a52b3d1d6c
commit
9df3b3560f
@ -381,7 +381,7 @@ func (p *Playlist) Refresh() {
|
|||||||
root.Walk(func(node, parent *tview.TreeNode) bool {
|
root.Walk(func(node, parent *tview.TreeNode) bool {
|
||||||
|
|
||||||
// to preserve previously highlighted node
|
// to preserve previously highlighted node
|
||||||
if node.GetReference().(*AudioFile).Name == prevFileName {
|
if node.GetText() == prevFileName {
|
||||||
p.SetHighlight(node)
|
p.SetHighlight(node)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user