Skip to content

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

Merged
milianw merged 1 commit intomasterfrom
wip/josh/fix-flamegraph-save
Jan 30, 2024
Merged

Add error message when exporting a flamegraph that hasn't been opened#588
milianw merged 1 commit intomasterfrom
wip/josh/fix-flamegraph-save

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
Collaborator

@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
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