D28791: Manually merge stored and default settings

Kai Uwe Broulik noreply at phabricator.kde.org
Mon Apr 13 13:31:22 BST 2020


broulik created this revision.
broulik added reviewers: Plasma, fvogt.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
broulik requested review of this revision.

REVISION SUMMARY
  One can pass a default Object to `storage.get()` which will be used for keys that don't exist.
  However, it doesn't do that recursively, so when we add a new settings key for a specific module, like the `addToRecentDocuments` it will not be present for anyone who already touched the extension settings.

TEST PLAN
  - Added a new key to an existing module setting, got the key show up. The other settings seem unaffected.

REPOSITORY
  R856 Plasma Browser Integration

REVISION DETAIL
  https://phabricator.kde.org/D28791

AFFECTED FILES
  extension/utils.js

To: broulik, #plasma, fvogt
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200413/1e6cd3f9/attachment-0001.html>


More information about the Plasma-devel mailing list