Skip to content

client: make the error popup disableable#1605

Merged
illwieckz merged 1 commit intomasterfrom
illwieckz/error-popup
Mar 18, 2025
Merged

client: make the error popup disableable#1605
illwieckz merged 1 commit intomasterfrom
illwieckz/error-popup

Conversation

@illwieckz
Copy link
Copy Markdown
Member

@illwieckz illwieckz commented Mar 17, 2025

Make the error popup disableable.

The error popup is very useful for end users, to let them know what happened when the engine has to stop in an unexpected way.

But such error popup turns testing into torture, requiring a manual action after every test run hits a fatal error, and requiring a direct input access to the test bed.

This adds a cvar named client.errorPopup which is enabled by default. When disabled, the error popup is never displayed, letting the engine stop without requiring a manual intervention on the computer running the engine.

@illwieckz illwieckz added T-Feature-Request Proposed new feature A-Client labels Mar 17, 2025
#endif
#endif

static Cvar::Cvar<bool> client_errorPopup("client.errorPopup", "Enable the error popup window", Cvar::TEMPORARY, true);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove TEMPORARY? TEMPORARY, like ARCHIVE, has little reason to be used now that cvar commands don't automatically archive things.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Removed.

@illwieckz illwieckz force-pushed the illwieckz/error-popup branch from 4943eeb to 1afcf02 Compare March 18, 2025 11:24
@illwieckz illwieckz merged commit 13886d8 into master Mar 18, 2025
9 checks passed
@illwieckz illwieckz deleted the illwieckz/error-popup branch March 18, 2025 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Client T-Feature-Request Proposed new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants