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 saving of settings when pressing ESC #1458

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

Flamefire
Copy link
Member

When pressing ESC the window was directly deleted instead of first calling Close which triggers a settings update for e.g. the tools window.

Refactor this so deleting a window is purely done by the WindowManager and before deleting Close is always called.
Add tests which catch this.

Also some changes to tests to avoid log spam and fix possibly missed mock-verify calls.

Fixes #1455

When pressing ESC the window was directly deleted instead of first calling Close which triggers a settings update for e.g. the tools window.

Refactor this so deleting a window is purely done by the WindowManager and before deleting Close is always called.
Add tests which catch this.

Also some changes to tests to avoid log spam and fix possibly missed mock-verify calls.
@Flamefire Flamefire merged commit 40d94b4 into Return-To-The-Roots:master Nov 11, 2021
@Flamefire Flamefire deleted the fix-esc-handling branch November 11, 2021 12:12
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.

Settings not saved when closing windows by ESC
2 participants