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

desktop: Add screenshot functionality to the desktop app #13719

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

OctoCPPlus
Copy link

Allows you to take a screenshot of the stage using a button.

Feel free to suggest edits and changes, this code may be messy in places: I've never used rust before.

@OctoCPPlus OctoCPPlus changed the title Add screenshot functionality to the desktop app desktop: Add screenshot functionality to the desktop app Oct 26, 2023
@@ -193,6 +195,13 @@ impl RuffleGui {
player.set_volume(self.volume_controls.get_volume());
}

fn is_taking_screenshot(&mut self) -> bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The name is_taking_screenshot sounds like this method doesn't change the state- could this just return self.taking_screenshot? (I think this approach would require adding a set_taking_screenshot function)

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.

None yet

2 participants