Skip to content

Commit cc48ed5

Browse files
committed
update
1 parent 49eb094 commit cc48ed5

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ public void Save()
748748
/// <summary>
749749
/// To avoid deadlock, this method should not called from main thread
750750
/// </summary>
751-
public void UpdateResultView(IReadOnlyCollection<ResultsForUpdate> resultsForUpdates)
751+
public void UpdateResultView(IEnumerable<ResultsForUpdate> resultsForUpdates)
752752
{
753753
if (!resultsForUpdates.Any())
754754
return;

Flow.Launcher/ViewModel/ResultsViewModel.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void AddResults(List<Result> newRawResults, string resultId)
143143
/// <summary>
144144
/// To avoid deadlock, this method should not called from main thread
145145
/// </summary>
146-
public void AddResults(IReadOnlyCollection<ResultsForUpdate> resultsForUpdates, CancellationToken token)
146+
public void AddResults(IEnumerable<ResultsForUpdate> resultsForUpdates, CancellationToken token)
147147
{
148148
var newResults = NewResults(resultsForUpdates);
149149

@@ -189,11 +189,10 @@ private List<ResultViewModel> NewResults(List<Result> newRawResults, string resu
189189
return results.Where(r => r.Result.PluginID != resultId)
190190
.Concat(newResults)
191191
.OrderByDescending(r => r.Result.Score)
192-
.Distinct()
193192
.ToList();
194193
}
195194

196-
private List<ResultViewModel> NewResults(IReadOnlyCollection<ResultsForUpdate> resultsForUpdates)
195+
private List<ResultViewModel> NewResults(IEnumerable<ResultsForUpdate> resultsForUpdates)
197196
{
198197
if (!resultsForUpdates.Any())
199198
return Results.ToList();
@@ -203,7 +202,6 @@ private List<ResultViewModel> NewResults(IReadOnlyCollection<ResultsForUpdate> r
203202
return results.Where(r => r != null && !resultsForUpdates.Any(u => u.Metadata.ID == r.Result.PluginID))
204203
.Concat(resultsForUpdates.SelectMany(u => u.Results, (u, r) => new ResultViewModel(r, _settings)))
205204
.OrderByDescending(rv => rv.Result.Score)
206-
.Distinct()
207205
.ToList();
208206
}
209207
#endregion

Plugins/Flow.Launcher.Plugin.Explorer/Search/SearchManager.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public int GetHashCode(Result obj)
3535
{
3636
return obj.SubTitle.GetHashCode();
3737
}
38-
3938
}
4039

4140
internal async Task<List<Result>> SearchAsync(Query query, CancellationToken token)

Plugins/Flow.Launcher.Plugin.Explorer/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"Name": "Explorer",
88
"Description": "Search and manage files and folders. Explorer utilises Windows Index Search",
99
"Author": "Jeremy Wu",
10-
"Version": "1.7.0",
10+
"Version": "1.7.1",
1111
"Language": "csharp",
1212
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1313
"ExecuteFileName": "Flow.Launcher.Plugin.Explorer.dll",

0 commit comments

Comments
 (0)