ESM: Added BackgroundWorkerWaiter for running Magic on output in the background
This commit is contained in:
1 parent
37c8d1b7ea
commit
1ef4f71d8b
6 files changed
+229
-8
No files matched your search
@@ -344,6 +344,11 @@ class Magic {
|
||||
aScore += a.entropy;
|
||||
bScore += b.entropy;
|
||||
|
||||
// A result with no recipe but matching ops suggests there are better options
|
||||
if ((!a.recipe.length && a.matchingOps.length) &&
|
||||
b.recipe.length)
|
||||
return 1;
|
||||
|
||||
return aScore - bScore;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user