-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add better support for AppOptions with multiple types (PR 18465 follo…
…w-up) For options with varying types, see `useSystemFonts`, we're not sufficiently validating the type when setting a new value. This means that for an option that uses `OptionKind.UNDEF_ALLOWED` we'd allow *any* value, which is obviously not the intention. Hence we instead introduce a new and *optional* `type`-field that allows specifying exactly which types are valid when multiple ones are supported. *Note:* This obviously didn't occur to me until after PR 18465 landed, sorry about that!
- Loading branch information
1 parent
deaac28
commit b3ea789
Showing
1 changed file
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters