Skip to content

Commit 959d1d5

Browse files
committed
actually open the playlists window ('o') when a dirty playlist
has been successfully saved or when the user declines to save it
1 parent aff3c6c commit 959d1d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyradio/radio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4680,6 +4680,8 @@ def _check_to_open_playlist(self, a_url=None):
46804680
self._cnf.removed_playlist_history_item()
46814681
else:
46824682
''' ask to save playlist '''
4683+
self._function_to_repeat = self._check_to_open_playlist
4684+
self._cnf.dup_to_playlist_history()
46834685
self._print_save_modified_playlist(self.ws.ASK_TO_SAVE_PLAYLIST_WHEN_OPENING_PLAYLIST_MODE)
46844686
else:
46854687
self._open_playlist(a_url)
@@ -8125,9 +8127,10 @@ def keypress(self, char):
81258127
if char == -1:
81268128
''' ESCAPE '''
81278129
if self._cnf.browsing_station_service:
8128-
self._cnf.removed_playlist_history_item()
8130+
self._cnf.remove_from_playlist_history()
81298131
self.refreshBody()
81308132
self._function_to_repeat = None
8133+
self._cnf.remove_playlist_history_duplicates()
81318134
return
81328135

81338136
elif self.ws.operation_mode == self.ws.PLAYLIST_DIRTY_RELOAD_CONFIRM_MODE:

0 commit comments

Comments
 (0)