forked from Wobbl/Wobuzz
Added "Open Playlist" option to the menubar.
This commit is contained in:
parent
9ee4184c84
commit
0101cf174c
4 changed files with 13 additions and 8 deletions
|
@ -22,6 +22,7 @@ class Popups:
|
|||
|
||||
self.window.open_track_action.triggered.connect(self.open_tracks)
|
||||
self.window.import_track_action.triggered.connect(self.import_tracks)
|
||||
self.window.open_playlist_action.triggered.connect(self.open_playlist)
|
||||
self.window.import_playlist_action.triggered.connect(self.import_playlist)
|
||||
|
||||
def select_audio_files(self):
|
||||
|
@ -41,8 +42,11 @@ class Popups:
|
|||
def import_tracks(self):
|
||||
self.open_tracks() # placeholder
|
||||
|
||||
def import_playlist(self):
|
||||
def open_playlist(self):
|
||||
playlist_path = self.select_playlist_file()
|
||||
|
||||
if playlist_path is not None and not playlist_path == "":
|
||||
self.app.library.import_playlist(playlist_path)
|
||||
self.app.library.open_playlist(playlist_path)
|
||||
|
||||
def import_playlist(self):
|
||||
self.open_playlist() # placeholder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue