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 authored and GitHub committed 2026-02-16 00:38:10 -05:00
1 parent 81bce74612
commit a9ee91586e
1 file changed
+2 -2
@@ -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
};
}