-
-
Notifications
You must be signed in to change notification settings - Fork 32
Add shake to app icon when window cannot be opened #446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add shake to app icon when window cannot be opened #446
Conversation
189eb01 to
1fe5aeb
Compare
|
Sure thing. I have implemented the two suggestions and squashed the changes. |
1fe5aeb to
7abcdca
Compare
lenemter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to remove animation in cleanup method to avoid memory leak
7abcdca to
177f9b9
Compare
504fd5c to
d368132
Compare
|
Good point. I have added the animation to the |
danirabbit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Nice work!
lenemter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This adds a little shake to the launcher icon when a new window cannot be opened.
The code for the animation is mostly a copy of the animation in the PolkitDialog:
https://github.com/elementary/pantheon-agent-polkit/blob/main/src/PolkitDialog.vala#L287
Fixes #305