Skip to content

Commit

Permalink
fix: Fixed the issue of the lrc window
Browse files Browse the repository at this point in the history
Fixed the issue of the lrc window

Bug: https://pms.uniontech.com/bug-view-300603.html
Log: Fixed the issue of the lrc window
  • Loading branch information
pengfeixx committed Jan 16, 2025
1 parent 105c2d4 commit d2781f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/music-player/mainwindow/MainWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ ApplicationWindow {
playlistLoader.item.playlistHided.connect(function(){
toolbox.updatePlaylistBtnStatus(false)
})
playlistLoader.item.playlistEmpty.connect(function(){
if (isLyricShow)
lrcWindowLoader.item.lyricWindowUp()
})
toolbox.updatePlayControlBtnStatus()
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/music-player/playlist/CurrentPlayList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ CurrentFloatingPanel {
property Menu selectMenu: MulitSelectMenu{pageHash: "play"}
property MusicInfoDialog infoDialog: MusicInfoDialog{musicData: playlistView.model.get(0)}
signal playlistHided()
signal playlistEmpty()

id: playlistRoot
visible: isPlaylistShow
Expand Down Expand Up @@ -136,6 +137,7 @@ CurrentFloatingPanel {
}

onClicked: {
playlistEmpty()
listmodel.clear()
Presenter.clearPlayList("play")
}
Expand Down

0 comments on commit d2781f3

Please sign in to comment.