Stop after stream track works, and updated todo
This commit is contained in:
parent
9206cad0cf
commit
c98427aeae
12
TODO
12
TODO
@ -4,9 +4,19 @@
|
||||
- Automatically install xine plugins
|
||||
- Copy to library, move to library
|
||||
- Edit tags in the playlist
|
||||
- Global shortcut keys
|
||||
- Make QSortFilterProxyModel on the library obey hasChildren()
|
||||
- More columns in playlist
|
||||
|
||||
Last.fm:
|
||||
- Artist/tag/etc. radio
|
||||
- Skip, love
|
||||
- Disable the pause button
|
||||
- Double click from radio list
|
||||
- Right click on radio list to configure Last.fm
|
||||
- More types of radio
|
||||
|
||||
Long-term:
|
||||
- Last.fm
|
||||
- iPod
|
||||
|
||||
Windows:
|
||||
|
@ -34,7 +34,7 @@ void Player::Next() {
|
||||
|
||||
void Player::TrackEnded() {
|
||||
int i = playlist_->current_item();
|
||||
if (i == -1) {
|
||||
if (i == -1 || playlist_->stop_after_current()) {
|
||||
Stop();
|
||||
return;
|
||||
}
|
||||
|
@ -430,3 +430,8 @@ void Playlist::ClearStreamMetadata() {
|
||||
|
||||
emit dataChanged(index(current_item_.row(), 0), index(current_item_.row(), ColumnCount));
|
||||
}
|
||||
|
||||
bool Playlist::stop_after_current() const {
|
||||
return stop_after_.isValid() && current_item_.isValid() &&
|
||||
stop_after_.row() == current_item_.row();
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ class Playlist : public QAbstractListModel {
|
||||
int current_item() const;
|
||||
int next_item() const;
|
||||
int previous_item() const;
|
||||
bool stop_after_current() const;
|
||||
PlaylistItem* item_at(int index) const { return items_[index]; }
|
||||
|
||||
// Changing the playlist
|
||||
|
Loading…
x
Reference in New Issue
Block a user