Commit e314e02
committed
Avoid access to default scope on read of configuration scope preference
The configuration scope preference for monitor-specific scaling is read
at a point in time where the workspace location may not have been
defined, so that the instance scope preferences cannot be accessed yet.
Since some defaults initializers require access to the instance scope,
the access to the configuration scope preference must avoid access to
the default scope in case no explicit value is set for that preference
yet.
This change adapts the access to the monitor-specific scaling
configuration scope preference to not access the default scope. Since
there may be further preference defaults initializers out of our control
that access instance scope preferences, just adapting those in the
Platform would not be a sufficient solution alternative.
Fixes #40851 parent 8a0d043 commit e314e02
1 file changed
Lines changed: 2 additions & 3 deletions
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | 257 | | |
259 | 258 | | |
260 | 259 | | |
| |||
3748 | 3747 | | |
3749 | 3748 | | |
3750 | 3749 | | |
3751 | | - | |
3752 | | - | |
| 3750 | + | |
| 3751 | + | |
3753 | 3752 | | |
3754 | 3753 | | |
3755 | 3754 | | |
| |||
0 commit comments