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:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user