Skip to content

Commit

Permalink
refactor: add parameters to source handlers
Browse files Browse the repository at this point in the history
Makes it more explicit.
  • Loading branch information
romangg committed Feb 26, 2024
1 parent ed226a4 commit 1d560f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plasma-integration/plasmoid/package/contents/ui/main.qml
Expand Up @@ -69,11 +69,11 @@ Item {
engine: "powermanagement"
connectedSources: ["PowerDevil", "Inhibitions"]

onSourceAdded: {
onSourceAdded: source => {
disconnectSource(source);
connectSource(source);
}
onSourceRemoved: {
onSourceRemoved: source => {
disconnectSource(source);
}

Expand Down

0 comments on commit 1d560f0

Please sign in to comment.