Fix cancelling creation of new playlist
This commit is contained in:
parent
e23f8afed2
commit
613fa4343b
@ -601,10 +601,11 @@ class Window(QMainWindow, Ui_MainWindow):
|
|||||||
playlist_name: Optional[str] = None) -> Playlists:
|
playlist_name: Optional[str] = None) -> Playlists:
|
||||||
"""Create new playlist"""
|
"""Create new playlist"""
|
||||||
|
|
||||||
while not playlist_name:
|
|
||||||
playlist_name = self.solicit_playlist_name()
|
playlist_name = self.solicit_playlist_name()
|
||||||
|
if not playlist_name:
|
||||||
|
return
|
||||||
playlist = Playlists(session, playlist_name)
|
playlist = Playlists(session, playlist_name)
|
||||||
|
|
||||||
return playlist
|
return playlist
|
||||||
|
|
||||||
def create_and_show_playlist(self) -> None:
|
def create_and_show_playlist(self) -> None:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user