From 1d560f0f6ca98bee78b751c9d60218d68f27516a Mon Sep 17 00:00:00 2001 From: Roman Gilg Date: Mon, 26 Feb 2024 12:10:17 +0100 Subject: [PATCH] refactor: add parameters to source handlers Makes it more explicit. --- plasma-integration/plasmoid/package/contents/ui/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plasma-integration/plasmoid/package/contents/ui/main.qml b/plasma-integration/plasmoid/package/contents/ui/main.qml index 9f03da6..b3f6e00 100644 --- a/plasma-integration/plasmoid/package/contents/ui/main.qml +++ b/plasma-integration/plasmoid/package/contents/ui/main.qml @@ -69,11 +69,11 @@ Item { engine: "powermanagement" connectedSources: ["PowerDevil", "Inhibitions"] - onSourceAdded: { + onSourceAdded: source => { disconnectSource(source); connectSource(source); } - onSourceRemoved: { + onSourceRemoved: source => { disconnectSource(source); }