Playlist Viewer: Reset 'dirty' flag when saving playlist

Playlist Viewer, when quitting, should not ask
you to save a playlist that hasn't been modified
since it was last saved.

Change-Id: Ia401239392ba5f2d66562a991ba49b01c6c2d452
This commit is contained in:
Christian Soffke 2023-06-04 20:25:39 +02:00
parent 422ea20cef
commit 939bd9c2c3

View file

@ -661,7 +661,8 @@ static enum pv_onplay_result onplay_menu(int index)
break; break;
case 6: case 6:
/* save playlist */ /* save playlist */
save_playlist_screen(viewer.playlist); if (!save_playlist_screen(viewer.playlist))
dirty = false;
ret = PV_ONPLAY_UNCHANGED; ret = PV_ONPLAY_UNCHANGED;
break; break;
case 7: case 7: