status: store status fields seperately
This commit is contained in:
@@ -255,9 +255,9 @@ void SelectedItemsAdder::addAtTheBeginningOfPlaylist() const
|
||||
|
||||
void SelectedItemsAdder::addAfterCurrentSong() const
|
||||
{
|
||||
if (Status::get().playerState() == MPD::psStop)
|
||||
if (Status::State::player() == MPD::psStop)
|
||||
return;
|
||||
size_t pos = Status::get().currentSongPosition();
|
||||
size_t pos = Status::State::currentSongPosition();
|
||||
++pos;
|
||||
bool success = addSongsToPlaylist(m_selected_items.begin(), m_selected_items.end(), false, pos);
|
||||
exitSuccessfully(success);
|
||||
@@ -265,10 +265,10 @@ void SelectedItemsAdder::addAfterCurrentSong() const
|
||||
|
||||
void SelectedItemsAdder::addAfterCurrentAlbum() const
|
||||
{
|
||||
if (Status::get().playerState() == MPD::psStop)
|
||||
if (Status::State::player() == MPD::psStop)
|
||||
return;
|
||||
auto &pl = myPlaylist->main();
|
||||
size_t pos = Status::get().currentSongPosition();
|
||||
size_t pos = Status::State::currentSongPosition();
|
||||
withUnfilteredMenu(pl, [&pos, &pl]() {
|
||||
std::string album = pl[pos].value().getAlbum();
|
||||
while (pos < pl.size() && pl[pos].value().getAlbum() == album)
|
||||
|
||||
Reference in New Issue
Block a user