We already have somewhat of a versioning system available in the host and it stores and exposes information about what extension it supports and in what version.
This makes this information available to the options page and allows hiding elements using the data-requires-extension="foo" and data-requires-extension-version-minimum="2" attributes.
This is for better compatibility when adding new features to the host which is released independently of the extension.
Since the settings are still read and the items still added to the DOM, saving settings will not touch/change the enabled state of unsupported extensions should you use the extension on multiple computers with different versions of the host.
Details
Details
- Reviewers
fvogt - Group Reviewers
Plasma - Commits
- R856:55d78db657be: Allow hiding option items depending on available extension and version in the…
Depends on D21112
- Added a new item with required extension attribute, didn't add it to the host, had the item successfully hidden
- Added a new item with a required version of 2, had the item successfully hidden
- Verified that saving would still write the enabled state correctly
Diff Detail
Diff Detail
- Repository
- R856 Plasma Browser Integration
- Lint
Lint Skipped - Unit
Unit Tests Skipped