Skip to content
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

Keep launch animation for slower app startup #172

Closed
wants to merge 2 commits into from

Conversation

vjr
Copy link
Member

@vjr vjr commented Feb 16, 2023

Fixes #171

@vjr
Copy link
Member Author

vjr commented Feb 16, 2023

I tried introducing a few seconds sleep in the startup of the Tasks app and while the spinner persists, the bounce animation does not because the appinfo launch seems to return immediately.

It might just work on a real system with slow spinning disk though, if someone can test?

@@ -42,17 +42,17 @@ public class Dock.Launcher : Gtk.Button {

var context = Gdk.Display.get_default ().get_app_launch_context ();
context.set_timestamp (Gdk.CURRENT_TIME);
context.launched.connect (() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to connect to launch_failed so that we don't end up leaving the animation if the launch doesn't succeed for some reason

@vjr
Copy link
Member Author

vjr commented Nov 12, 2023

Closing this PR - will revisit the issue with a new PR later on if it's still relevant with the new Dock.

@vjr vjr closed this Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Icon animation or other feedback during slow launch
3 participants