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

Fix minimising example minimizing every frame #15850

Merged
merged 4 commits into from
Oct 11, 2024

Conversation

rparrett
Copy link
Contributor

@rparrett rparrett commented Oct 11, 2024

Objective

The minimising example is a bit annoying to run locally, because it attempts to minimize the window every frame, so un-minimizing it is difficult.

Solution

Only minimize once.

The contents of the example can now be inspected, and the window easily closed after the minimization happens.

Testing

cargo run --example minimising

I tested on macos only.

tests/window/minimising.rs Outdated Show resolved Hide resolved
tests/window/minimising.rs Outdated Show resolved Hide resolved
@tim-blackbird tim-blackbird added D-Trivial Nice and easy! A great choice to get started with Bevy C-Examples An addition or correction to our examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it labels Oct 11, 2024
@mockersf mockersf added this pull request to the merge queue Oct 11, 2024
Merged via the queue into bevyengine:main with commit 7f24c27 Oct 11, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Examples An addition or correction to our examples D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants