We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9282e95 commit 90e9056Copy full SHA for 90e9056
wox.core/plugin/api.go
@@ -195,10 +195,16 @@ func (a *APIImpl) ShowApp(ctx context.Context) {
195
}
196
197
func (a *APIImpl) Notify(ctx context.Context, message string) {
198
+ icon := a.pluginInstance.Metadata.Icon
199
+ if parsedIcon, err := common.ParseWoxImage(icon); err == nil {
200
+ convertedIcon := common.ConvertIcon(ctx, parsedIcon, a.pluginInstance.PluginDirectory)
201
+ icon = convertedIcon.String()
202
+ }
203
+
204
GetPluginManager().GetUI().Notify(ctx, common.NotifyMsg{
205
PluginId: a.pluginInstance.Metadata.Id,
206
Text: a.GetTranslation(ctx, message),
- Icon: a.pluginInstance.Metadata.Icon,
207
+ Icon: icon,
208
DisplaySeconds: 5,
209
})
210
0 commit comments