-
Notifications
You must be signed in to change notification settings - Fork 206
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
[Win32] Enable monitor-specific scaling by default #2868
[Win32] Enable monitor-specific scaling by default #2868
Conversation
Test Results 1 824 files ±0 1 824 suites ±0 1h 45m 35s ⏱️ + 11m 10s For more details on these failures, see this check. Results for commit b45c4a0. ± Comparison against base commit 88e83a8. ♻️ This comment has been updated with latest results. |
61df617
to
e1e079e
Compare
bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/WorkbenchMessages.java
Outdated
Show resolved
Hide resolved
e1e079e
to
296fa08
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/IWorkbenchPreferenceConstants.java
Outdated
Show resolved
Hide resolved
bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/messages.properties
Show resolved
Hide resolved
@fedejeanne The preference is not stored in the workspace but in the configuration. Did you clean that or create a new one as well? At least I cannot reproduce this issue. |
296fa08
to
19c7446
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, shouldn't the option be then enabled when starting on a new workspace? I started a brand new Eclipse Application with a clean WS and it wasn't
@fedejeanne The preference is not stored in the workspace but in the configuration. Did you clean that or create a new one as well? At least I cannot reproduce this issue.
Thank you for the pointer. I must have screwed up somewhere else when checking out your PR because I tried it again and I cannot reproduce it either. One pointer (for my future self too) is that when creating a new Run Configuration, this option is enabled by default:
This makes testing this kind of PRs impossible: I was getting always the default value (true
) for the property and it was therefore always enabled after a restart. I disabled that option and was able to test this PR just fine.
I have one final remark: the initial value of true
should also be applied in line 375 of the ViewsPreferencePage
, otherwise changing the preference from true
to false
for the very 1st time doesn't not ask for a workbench restart (subsequent changes will ask for a restart though)
.../org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/dialogs/ViewsPreferencePage.java
Show resolved
Hide resolved
056cc2f
to
1ee97cc
Compare
There is a checkbox in each launch configuration whether to clear the configuration before launching. |
Do you mean this one? #2868 (review) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my point of view, this PR is now good to go ✔️
@HeikoKlare fyi I made 2 changes (2 commits), they are already squashed.
The monitor-specific UI scaling on Windows is disabled by default and can be activated via a preference. This change inverts the default enablement: it enables the feature by default and allows to disable it via preference. The existing experimental preference is renamed to reset the configuration for every consumer. All information about the feature being experimental is removed.
1ee97cc
to
b45c4a0
Compare
Yes. Reading on phone so harder to see all details. Sorry. |
No worries, I was just making sure I got it right :-) . Thank you, Ed! |
Test failures are unrelated:
|
Thank you! Changes look good to me. fwiw: when introducing the preference, we had to move it to the configuration area because it has to be read before the workspace is available. |
We have a regression: eclipse-platform/eclipse.platform.swt#2003 |
The monitor-specific UI scaling on Windows is disabled by default and can be activated via a preference.
This change inverts the default enablement: it enables the feature by default and allows to disable it via preference. The existing experimental preference is renamed to reset the configuration for every consumer. All information about the feature being experimental is removed.