1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-03 20:32:07 -04:00

fix: preserve _preScored from plugin items to allow ordering control (#1696)

The _preScored property allows plugins to control the ordering of
launcher results. Previously, this property was being overwritten
with undefined during item transformation, preventing plugins from
controlling which items appear first.

This change preserves the _preScored value from plugin items in:
- transformBuiltInLauncherItem()
- transformPluginItem()

Required for: devnullvoid/dms-web-search#7
This commit is contained in:
Jon Rogers
2026-02-16 00:38:10 -05:00
committed by GitHub
parent 81bce74612
commit a9ee91586e

View File

@@ -112,7 +112,7 @@ function transformBuiltInLauncherItem(item, pluginId, openLabel) {
_hName: "",
_hSub: "",
_hRich: false,
_preScored: undefined
_preScored: item._preScored
};
}
@@ -186,7 +186,7 @@ function transformPluginItem(item, pluginId, selectLabel) {
_hName: "",
_hSub: "",
_hRich: false,
_preScored: undefined
_preScored: item._preScored
};
}