Filter duplicate program item

This commit is contained in:
cxfksword 2014-03-22 13:50:20 +08:00
parent 9177f4b47d
commit eb094eaebb

View File

@ -124,6 +124,10 @@ namespace Wox.Plugin.System
});
installedList.AddRange(list);
}
// filter duplicate program
installedList = installedList.GroupBy(x => new { x.ExecutePath, x.ExecuteName })
.Select(g => g.First()).ToList();
}
private void ScoreFilter(Program p)