mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-26 13:49:21 +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 {
|
||||
|
||||
// to preserve previously highlighted node
|
||||
if node.GetReference().(*AudioFile).Name == prevFileName {
|
||||
if node.GetText() == prevFileName {
|
||||
p.SetHighlight(node)
|
||||
return false
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user