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
|
@ -95,9 +95,6 @@ class Library:
|
|||
if self.temporary_playlist is not None:
|
||||
self.temporary_playlist.delete()
|
||||
|
||||
if self.temporary_playlist in self.playlists:
|
||||
self.playlists.remove(self.temporary_playlist)
|
||||
|
||||
if not replace in self.playlists:
|
||||
self.playlists.append(replace)
|
||||
|
||||
|
@ -112,7 +109,7 @@ class Library:
|
|||
|
||||
playlist.load()
|
||||
|
||||
def import_playlist(self, playlist_path: str):
|
||||
def open_playlist(self, playlist_path: str):
|
||||
playlist = Playlist(self.app, "Temporary Playlist", playlist_path)
|
||||
|
||||
self.replace_temporary_playlist(playlist)
|
||||
|
@ -121,3 +118,6 @@ class Library:
|
|||
|
||||
playlist.load()
|
||||
|
||||
def import_playlist(self, playlist_path: str):
|
||||
self.open_playlist(playlist_path)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue