mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Support badge path for result update interface
This commit is contained in:
parent
a1ce6b348d
commit
ec99a365b9
1 changed files with 8 additions and 0 deletions
|
|
@ -245,6 +245,14 @@ namespace Flow.Launcher.ViewModel
|
|||
// make a clone to avoid possible issue that plugin will also change the list and items when updating view model
|
||||
var resultsCopy = DeepCloneResults(e.Results, token);
|
||||
|
||||
foreach (var result in resultsCopy)
|
||||
{
|
||||
if (string.IsNullOrEmpty(result.BadgeIcoPath))
|
||||
{
|
||||
result.BadgeIcoPath = pair.Metadata.IcoPath;
|
||||
}
|
||||
}
|
||||
|
||||
PluginManager.UpdatePluginMetadata(resultsCopy, pair.Metadata, e.Query);
|
||||
if (!_resultsUpdateChannelWriter.TryWrite(new ResultsForUpdate(resultsCopy, pair.Metadata, e.Query,
|
||||
token)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue