Fix cancelling creation of new playlist

This commit is contained in:
Keith Edmunds 2023-02-26 22:03:13 +00:00
parent e23f8afed2
commit 613fa4343b

View File

@ -601,10 +601,11 @@ class Window(QMainWindow, Ui_MainWindow):
playlist_name: Optional[str] = None) -> Playlists:
"""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)
return playlist
def create_and_show_playlist(self) -> None: