Skip to content

Commit e4c88d3

Browse files
committed
feat: open widget configuration from right click menu on any widget
1 parent ab7fa2c commit e4c88d3

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

package/contents/ui/main.qml

+10-1
Original file line numberDiff line numberDiff line change
@@ -1298,6 +1298,13 @@ PlasmoidItem {
12981298
}
12991299
}
13001300

1301+
PlasmaCore.Action {
1302+
id: configureAction
1303+
text: plasmoid.internalAction("configure").text
1304+
icon.name: 'configure'
1305+
onTriggered: plasmoid.internalAction("configure").trigger()
1306+
}
1307+
13011308
function showWidgets(panelLayout) {
13021309
console.error("showWidgets()")
13031310
for (var i in panelLayout.children) {
@@ -1307,7 +1314,9 @@ PlasmoidItem {
13071314
if (!child.applet?.plasmoid?.pluginName) continue
13081315
// if (Utils.getBgManaged(child)) continue
13091316
// console.error(child.applet?.plasmoid?.pluginName)
1310-
// Utils.dumpProps(child)
1317+
if (child.applet.plasmoid.pluginName !== "luisbocanegra.panel.colorizer") {
1318+
child.applet.plasmoid.contextualActions.push(configureAction)
1319+
}
13111320
const isTray = child.applet.plasmoid.pluginName === "org.kde.plasma.systemtray"
13121321
if (isTray) trayIndex = i
13131322
const bgItem = Utils.getBgManaged(child)

0 commit comments

Comments
 (0)