Skip to content

Commit 371eaf4

Browse files
committed
fix: overrides not working for plasmoids in system tray
1 parent e1c44b5 commit 371eaf4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package/contents/ui/code/utils.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function findWidgetsTray(grid, panelWidgets) {
155155
}
156156

157157
function getWidgetNameAndId(item) {
158-
let name = null
158+
let name = ""
159159
let id = -1
160160
if (item.applet?.plasmoid?.pluginName) {
161161
name = item.applet.plasmoid.pluginName
@@ -168,8 +168,8 @@ function getWidgetNameAndId(item) {
168168
name = model.Id
169169
} else if (model.itemType === "Plasmoid") {
170170
const applet = model.applet ?? null
171-
name = applet?.plasmoid.pluginName ?? null
172-
name = applet?.plasmoid.id ?? -1
171+
name = applet?.plasmoid.pluginName ?? ""
172+
id = applet?.plasmoid.id ?? -1
173173
}
174174
}
175175
}

0 commit comments

Comments
 (0)