Commit bfcc6df3 authored by George Vogiatzis's avatar George Vogiatzis

[Applet/TaskManager]Don't create extra PulseAudio component

Summary: Use the component already created.

Test Plan:
Functionality must stay the same.
Test with D27684's Test Plan.
Also test without plasma-pa, no options or icon should appear,
without any warning.

Reviewers: #plasma, hein, ngraham

Reviewed By: ngraham

Subscribers: broulik, ngraham, plasma-devel

Tags: #plasma

Differential Revision:
parent fbf663d2
......@@ -39,12 +39,11 @@ MouseArea {
property bool iconsOnly: (plasmoid.pluginName === "org.kde.plasma.icontasks")
property QtObject contextMenuComponent: Qt.createComponent("ContextMenu.qml");
property QtObject pulseAudioComponent: Qt.createComponent("PulseAudio.qml");
property bool needLayoutRefresh: false;
property variant taskClosedWithMouseMiddleButton: []
readonly property bool plasmaPaAvailable: Qt.createComponent("PulseAudio.qml").status === Component.Ready
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
Plasmoid.onUserConfiguringChanged: {
......@@ -306,8 +305,8 @@ MouseArea {
Loader {
id: pulseAudio
source: "PulseAudio.qml"
active: plasmaPaAvailable
sourceComponent: pulseAudioComponent
active: pulseAudioComponent.status === Component.Ready
Timer {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment