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: respect the setting of QT_ENABLE_HIGHDPI_SCALING of the system #2077

Merged
merged 3 commits into from
Jan 14, 2025

Conversation

HanatoK
Copy link
Contributor

@HanatoK HanatoK commented Jan 12, 2025

Setting QT_ENABLE_HIGHDPI_SCALING to 1 might not work well in some cases. Instead of hard-coding it to 1, this commit checks if it is already set, and if it is empty or not set, then set it to 1. This allows overriding the QT_ENABLE_HIGHDPI_SCALING to 0 by respecting the system-wide setting of environment variables.

Setting QT_ENABLE_HIGHDPI_SCALING to 1 might not work well in some
cases. Instead of hard-coding it to 1, this commit checks if it is
already set, and if it is empty or not set, then set it to 1. This
allows overriding the QT_ENABLE_HIGHDPI_SCALING to 0 by respecting the
system-wide setting of environment variables.
src/main.cc Outdated Show resolved Hide resolved
@xiaoyifang xiaoyifang merged commit fd42f81 into xiaoyifang:staged Jan 14, 2025
9 checks passed
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.

2 participants