From 939bd9c2c3186ab4adca2efe85325314f04e53f7 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Sun, 4 Jun 2023 20:25:39 +0200 Subject: [PATCH] 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 --- apps/playlist_viewer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 28b919b008..3d530e791a 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -661,7 +661,8 @@ static enum pv_onplay_result onplay_menu(int index) break; case 6: /* save playlist */ - save_playlist_screen(viewer.playlist); + if (!save_playlist_screen(viewer.playlist)) + dirty = false; ret = PV_ONPLAY_UNCHANGED; break; case 7: