GNOME Bugzilla – Bug 781281
Deleting a playlist and closing Music within 5 seconds does not delete the playlist.
Last modified: 2018-01-10 15:04:28 UTC
Reproduce: 1: Delete the playlist 2: Close Music within 5 seconds 3: Restart Music The playlist is still present.
Should be part of the quit calls to remove the pending playlist.
Created attachment 349885 [details] [review] window: Execute playlist deletion on quit window Connect to 'delete-event' of window to finish the queued playlist deletion and appropriately disconnect at undo or successful deletion.
Review of attachment 349885 [details] [review]: I was looking at this and I'm not sure I agree with the overall approach here. To me it looks we're filling up window.py with code that shouldn't be there in the first place. To me deleting a playlist belongs in the playlist class, it should just be a call, possibly with an added time-out (for the undo). So, something like playlists.delete_playlist(playlist, delay). To make sure it gets deleted on exit there should be a destructor type of function (sadly python is bad at this). So in the tear down there should be a call somewhere to eg. playlists.cleanup(), which removes the playlist if it's within the delay time.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-music/issues/106.