diff options
author | qkzk <qu3nt1n@gmail.com> | 2023-09-26 17:24:02 +0200 |
---|---|---|
committer | qkzk <qu3nt1n@gmail.com> | 2023-09-26 17:24:02 +0200 |
commit | ec2edff62e770425f743aa3800a904a915240758 (patch) | |
tree | 13b9d97139c252e52678064d56d0835b7eba85df /src/event_exec.rs | |
parent | a4faefd233e8176c6e44302b201ffa10950af6ba (diff) |
mocp clear playlist
Diffstat (limited to 'src/event_exec.rs')
-rw-r--r-- | src/event_exec.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event_exec.rs b/src/event_exec.rs index 57ba23f..f421bba 100644 --- a/src/event_exec.rs +++ b/src/event_exec.rs @@ -996,6 +996,10 @@ impl EventAction { Mocp::add_to_playlist(tab) } + pub fn mocp_clear_playlist() -> Result<()> { + Mocp::clear() + } + /// Add a song or a folder to MOC playlist. Start it first... pub fn mocp_go_to_song(tab: &mut Tab) -> Result<()> { Mocp::go_to_song(tab) |