Export playlist to file with Ctrl+E

This commit is contained in:
Rafostar
2021-05-02 20:25:15 +02:00
parent efe9439633
commit 6a4f5f2560
4 changed files with 122 additions and 39 deletions

View File

@@ -2,6 +2,7 @@ const Dialogs = imports.src.dialogs;
var actions = {
open_local: ['<Ctrl>O'],
export_playlist: ['<Ctrl>E'],
open_uri: ['<Ctrl>U'],
prefs: null,
about: null,
@@ -30,7 +31,8 @@ function handleAction(action, window)
switch(action.name) {
case 'open_local':
new Dialogs.FileChooser(window);
case 'export_playlist':
new Dialogs.FileChooser(window, action.name);
break;
case 'open_uri':
new Dialogs.UriDialog(window);