|
|
|
@ -804,6 +804,11 @@ void NextSong::run() |
|
|
|
Mpd.Next(); |
|
|
|
Mpd.Next(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool Pause::canBeRun() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return Status::State::player() != MPD::psStop; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Pause::run() |
|
|
|
void Pause::run() |
|
|
|
{ |
|
|
|
{ |
|
|
|
Mpd.Toggle(); |
|
|
|
Mpd.Toggle(); |
|
|
|
@ -845,6 +850,11 @@ void Stop::run() |
|
|
|
Mpd.Stop(); |
|
|
|
Mpd.Stop(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Play::run() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Mpd.Play(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void ExecuteCommand::run() |
|
|
|
void ExecuteCommand::run() |
|
|
|
{ |
|
|
|
{ |
|
|
|
using Global::wFooter; |
|
|
|
using Global::wFooter; |
|
|
|
@ -2734,6 +2744,7 @@ void populateActions() |
|
|
|
insert_action(new Actions::NextSong()); |
|
|
|
insert_action(new Actions::NextSong()); |
|
|
|
insert_action(new Actions::Pause()); |
|
|
|
insert_action(new Actions::Pause()); |
|
|
|
insert_action(new Actions::Stop()); |
|
|
|
insert_action(new Actions::Stop()); |
|
|
|
|
|
|
|
insert_action(new Actions::Play()); |
|
|
|
insert_action(new Actions::ExecuteCommand()); |
|
|
|
insert_action(new Actions::ExecuteCommand()); |
|
|
|
insert_action(new Actions::SavePlaylist()); |
|
|
|
insert_action(new Actions::SavePlaylist()); |
|
|
|
insert_action(new Actions::MoveSortOrderUp()); |
|
|
|
insert_action(new Actions::MoveSortOrderUp()); |
|
|
|
|