Skip to content

Add toggle action to switch between loaded image and generated image #7

Description

@apsexton

Add a toggle action with an appropriate accelerator key, and connect it to the menu and the toolbar to switch between displaying the loaded image in the canvas and not displaying a generated image.

The idea is that, if an image has been loaded, then this action becomes enabled. Then triggering it, by clicking on the button, will disable drawing the image on the canvas and instead not draw anything else in its place. In a later task this will be changed to generating and drawing a different image.

If the action is triggered again, it goes back to displaying the loaded image (the image does not need to be reloaded, merely redrawn)

Care should be taken to only have the toggle action enabled when an image is loaded.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions