Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
你好,我做了一些修改。
尝试修复的问题:
https://github.com/Beslyric-for-X/Beslyric-for-X/blob/81d51042e3e1273faeaca3002eb3f92cbd2b227e/Entities/MusicPlayer/musicPlayer.cpp#L891-L902
暂停时拖动 sliderSong 进行 seek 后会继续播放音乐,但 btnPlayAndPause 的样式并不会由“播放”变为“暂停”;
音乐播放结束后 btnPlayAndPause 的样式不会由“暂停”变为“播放”;
btnPlayAndPause 的样式是在切换状态时直接修改,而不是由 musicPlayer 发出的信号决定:
https://github.com/Beslyric-for-X/Beslyric-for-X/blob/81d51042e3e1273faeaca3002eb3f92cbd2b227e/BottomWidgets/BottomWidget.cpp#L157-L160
https://github.com/Beslyric-for-X/Beslyric-for-X/blob/81d51042e3e1273faeaca3002eb3f92cbd2b227e/BottomWidgets/BottomWidget.cpp#L169
https://github.com/Beslyric-for-X/Beslyric-for-X/blob/81d51042e3e1273faeaca3002eb3f92cbd2b227e/Entities/MusicPlayer/musicPlayer.cpp#L603
https://github.com/Beslyric-for-X/Beslyric-for-X/blob/81d51042e3e1273faeaca3002eb3f92cbd2b227e/Entities/MusicPlayer/musicPlayer.cpp#L621
BottomWidget::initEntity()
方法中有代码将其覆盖:https://github.com/Beslyric-for-X/Beslyric-for-X/blob/81d51042e3e1273faeaca3002eb3f92cbd2b227e/Entities/MusicPlayer/musicPlayer.cpp#L777-L778
https://github.com/Beslyric-for-X/Beslyric-for-X/blob/81d51042e3e1273faeaca3002eb3f92cbd2b227e/BottomWidgets/BottomWidget.cpp#L117-L118
代码中留下了部分输出日志的代码,还有一些注释。
请仔细检查我的改动,谢谢。