Skip to content

Commit fd10b04

Browse files
committed
refactor: simplify result polishing and UI component formatting in theme settings
1 parent 491a0ab commit fd10b04

File tree

2 files changed

+102
-199
lines changed

2 files changed

+102
-199
lines changed

wox.core/plugin/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ func (a *APIImpl) PushResults(ctx context.Context, query Query, results []QueryR
475475
return false
476476
}
477477

478-
for _, result := range results {
479-
GetPluginManager().PolishResult(ctx, a.pluginInstance, query, result)
478+
for i := range results {
479+
results[i] = GetPluginManager().PolishResult(ctx, a.pluginInstance, query, results[i])
480480
}
481481

482482
polishedResults := GetPluginManager().BuildQueryResultsSnapshot(query.SessionId, query.Id)

0 commit comments

Comments
 (0)