Skip to content

Commit

Permalink
fix: Fixed the issue that Chinese parts could not be selected
Browse files Browse the repository at this point in the history
Fixed the issue that Chinese parts could not be selected

Bug: https://pms.uniontech.com/bug-view-300521.html,
https://pms.uniontech.com/bug-view-300603.html
Log: Fixed the issue that Chinese parts could not be selected
  • Loading branch information
pengfeixx authored and deepin-bot[bot] committed Jan 17, 2025
1 parent bd05a7e commit e37ee8c
Show file tree
Hide file tree
Showing 77 changed files with 28,138 additions and 8,985 deletions.
5 changes: 4 additions & 1 deletion src/music-player/dialogs/FileDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ FileDialog {
folder: StandardPaths.writableLocation(StandardPaths.MusicLocation)
nameFilters: {
var suffix = Presenter.supportedSuffixList()
var string = suffix[0]
var string = qsTr("All Music")
string += "("
string += suffix[0]
var suffixList = []

for (var i = 1; i < suffix.length; i++) {
string += " "
string += suffix[i]
}
string += ")"

suffixList.push(string)
//console.log(string)
Expand Down
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
Loading

0 comments on commit e37ee8c

Please sign in to comment.