broulik created this revision. broulik added a reviewer: Plasma. broulik set the repository for this revision to R119 Plasma Desktop. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel.
REVISION SUMMARY Replace the convoluted make an object with the order of applets by iterating them and then add them in order by a sort() and forEach(). This makes the code much easier to follow. TEST PLAN Verified that my applets are still added in the correct order. Also verified that applets not in the appletOrder are added at the end of the panel REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D3834 AFFECTED FILES containments/panel/contents/code/LayoutManager.js EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: broulik, #plasma Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas