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

Add error message when exporting a flamegraph that hasn't been opened #588

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

redstrate
Copy link
Contributor

In order to save a flamegraph to an image or SVG, it must have been opened at least once so the graphics item is loaded. If you try to export it before doing so, you'll still get prompted to save the file, but it won't be (nor can be) written.

Now there's an explicit check with it's own error message in that case.

@redstrate redstrate added the bug label Jan 8, 2024
@lievenhey lievenhey requested a review from milianw January 9, 2024 15:15
Copy link
Member

@milianw milianw left a comment

Choose a reason for hiding this comment

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

can you please instead disable the action and re-enable it when canConverToImageChanged (and thus add that signal too)

In order to save a flamegraph to an image or SVG, it must have been
opened at least once so the graphics item is loaded. If you try to
export it before doing so, you'll still get prompted to save the file,
but it won't be (nor can be) written.

Now there's an explicit check with it's own error message in that case.
@lievenhey lievenhey force-pushed the wip/josh/fix-flamegraph-save branch from 57904da to e8a6516 Compare January 29, 2024 12:18
@lievenhey lievenhey requested a review from milianw January 29, 2024 12:19
@milianw milianw merged commit 55ee32c into master Jan 30, 2024
25 checks passed
@milianw milianw deleted the wip/josh/fix-flamegraph-save branch January 30, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants