After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 777041 - Unexpected behaviour of playlist notification actions, sometimes deletes, sometimes not
Unexpected behaviour of playlist notification actions, sometimes deletes, som...
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
3.23.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-music-maint
gnome-music-maint
Depends on:
Blocks: 778870
 
 
Reported: 2017-01-09 12:19 UTC by Abhinav Singh
Modified: 2017-03-13 21:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Made the playlist notification X action independent. (2.41 KB, patch)
2017-01-09 12:24 UTC, Abhinav Singh
none Details | Review
Simplified playlist and loading notifications. (3.82 KB, patch)
2017-01-09 19:13 UTC, Abhinav Singh
committed Details | Review

Description Abhinav Singh 2017-01-09 12:19:41 UTC
Unexpected behaviour of playlist notification X action, sometimes deletes, sometimes not

Reproduce:
delete playlist 1 - wait for 5 seconds (really_delete* becomes false)
delete playlist 2 - press X on notification (really_delete* is still false so no deletion)
playlist disappears from side bar -- **so I assume deletion was necessary**

run gnome-music again and playlist 2 appears again

*really_delete is a member of playlistview.py file

Expected:
> X button always deletes the playlist & undo always prevents deletion of the playlist
Comment 1 Abhinav Singh 2017-01-09 12:24:33 UTC
Created attachment 343148 [details] [review]
Made the playlist notification X action independent.
Comment 2 Abhinav Singh 2017-01-09 12:25:32 UTC
Comment on attachment 343148 [details] [review]
Made the playlist notification X action independent.

really_delete was complicating action's behaviour. It is more predictable now.
I have assumed that X should always delete the playlist, because I observed that X deletes the playlist from the sideview always.
Hence, now it should delete the playlist always and it would not appear when restarting the application.
Comment 3 Marinus Schraal 2017-01-09 12:45:04 UTC
Nice catch.

I'm sort of wondering why we have a close button at all, they're all timed. It seems unnecessary to me.
Comment 4 Abhinav Singh 2017-01-09 13:58:23 UTC
I agree, 5 seconds are not long enough that user might want to close it intentionally.

Should I remove the close button and make a patch?
Comment 5 Marinus Schraal 2017-01-09 14:28:08 UTC
A patch would be appreciated. For the loading notification as well if you have the time.
Comment 6 Abhinav Singh 2017-01-09 19:13:45 UTC
Created attachment 343191 [details] [review]
Simplified playlist and loading notifications.

Removed close buttons from these notifications, and removed really_delete which was unnecessarily complicating behaviour.
Comment 7 Marinus Schraal 2017-01-16 10:02:07 UTC
Review of attachment 343191 [details] [review]:

lgtm

but I want to discuss with the designers a bit further before push
Comment 8 Marinus Schraal 2017-03-13 21:30:05 UTC
Thanks for the patch.