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 763872 - appNotification: Dismiss undo notifications on shutdown
appNotification: Dismiss undo notifications on shutdown
Status: RESOLVED FIXED
Product: polari
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks:
 
 
Reported: 2016-03-18 12:48 UTC by Florian Müllner
Modified: 2016-03-22 19:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
appNotification: Dismiss undo notifications on shutdown (1.20 KB, patch)
2016-03-18 12:48 UTC, Florian Müllner
none Details | Review
appNotification: Dismiss undo notifications on shutdown (1.68 KB, patch)
2016-03-18 14:55 UTC, Florian Müllner
none Details | Review
appNotification: Dismiss undo notifications on shutdown (1.72 KB, patch)
2016-03-18 15:54 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2016-03-18 12:48:11 UTC
See patch.
Comment 1 Florian Müllner 2016-03-18 12:48:15 UTC
Created attachment 324265 [details] [review]
appNotification: Dismiss undo notifications on shutdown

When the user removes an account, we only hide it initially to give
the user the chance to undo the action. Currently when we quit while
the undo notification is still shown, the account gets stuck in the
hidden state - make sure to properly dismiss the notification to
avoid this case.
Comment 2 Florian Müllner 2016-03-18 14:55:07 UTC
Created attachment 324283 [details] [review]
appNotification: Dismiss undo notifications on shutdown

When the user removes an account, we only hide it initially to give
the user the chance to undo the action. Currently when we quit while
the undo notification is still shown, the account gets stuck in the
hidden state - make sure to properly dismiss the notification to
avoid this case.
Comment 3 Matthias Clasen 2016-03-18 15:41:53 UTC
Review of attachment 324283 [details] [review]:

Just to be clear: dismissing the notification is not the real concern here, right ? It is just a way to trigger removing the account for good ?
The commit message should make that clear
Comment 4 Florian Müllner 2016-03-18 15:54:45 UTC
Created attachment 324287 [details] [review]
appNotification: Dismiss undo notifications on shutdown

(In reply to Matthias Clasen from comment #3)
> Just to be clear: dismissing the notification is not the real concern here,
> right ? It is just a way to trigger removing the account for good ?

Technically the notification is generic and just emits either ::closed or ::undo, depending on whether the action should go ahead or be undone. But yes, for now this is only used for account removal, and making sure to emit ::closed on destroy is a way to make sure that a "removed" account is actually removed.
Comment 5 Florian Müllner 2016-03-22 19:22:46 UTC
Attachment 324287 [details] pushed as fec3606 - appNotification: Dismiss undo notifications on shutdown