Commit 54b5e2f7 authored by Nicolas Fella's avatar Nicolas Fella Committed by Nate Graham
Browse files

applet" Fix showing network QR code button only for WiFi networks

This was the case originally until d13233b0 broke it.

BUG: 454643
BUG: 453806
FIXED-IN: 5.25.2
parent ddb562dc
Pipeline #196311 passed with stage
in 1 minute and 54 seconds
......@@ -64,16 +64,14 @@ PlasmaExtras.ExpandableListItem {
contextualActionsModel: [
Action {
enabled: connectionItem.isDefault
enabled: Uuid && Type === PlasmaNM.Enums.Wireless && passwordIsStatic
text: i18n("Show network's QR code")
icon.name: "view-barcode-qr"
onTriggered: {
if (Uuid && Type === PlasmaNM.Enums.Wireless && passwordIsStatic) {
if (!connectionItem.showQRComponent) {
connectionItem.showQRComponent = Qt.createComponent("ShowQR.qml", this);
if (connectionItem.showQRComponent.status === Component.Error) {
console.warn("Cannot create QR code component:", connectionItemshowQRComponent.errorString());
}
if (!connectionItem.showQRComponent) {
connectionItem.showQRComponent = Qt.createComponent("ShowQR.qml", this);
if (connectionItem.showQRComponent.status === Component.Error) {
console.warn("Cannot create QR code component:", connectionItemshowQRComponent.errorString());
}
}
const data = handler.wifiCode(ConnectionPath, Ssid, SecurityType)
......
Supports Markdown
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