Commit 3b8fc45f authored by Nate Graham's avatar Nate Graham 🔩
Browse files

[applet] Show KCM in System Settings

Summary:
CCBUG: 417836

Depends on D29711

As this will depend on Frameworks 5.71, it will be landed on master after branching,
ending up in Plasma 5.20.

Test Plan:
Right-click on applet and activate configure menu items
Activate applet and click on toolbar button
Observe that the KCM is opened in System Settings

Reviewers: jgrulich, mart, #plasma

Reviewed By: jgrulich, mart, #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D29716
parent ce91de02
......@@ -6,7 +6,7 @@ set(PROJECT_VERSION "5.19.80")
set(PROJECT_VERSION_MAJOR 5)
set(QT_MIN_VERSION "5.14.0")
set(KF5_MIN_VERSION "5.66.0")
set(KF5_MIN_VERSION "5.71.0")
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED On)
......
......@@ -204,7 +204,7 @@ ColumnLayout {
}
onClicked: {
KCMShell.open(mainWindow.kcm)
KCMShell.openSystemSettings(mainWindow.kcm)
}
}
}
......
......@@ -27,8 +27,8 @@ import QtQuick.Layouts 1.1
Item {
id: mainWindow
readonly property string kcm: "kcm_networkmanagement.desktop"
readonly property bool kcmAuthorized: KCMShell.authorize(kcm).length == 1
readonly property string kcm: "kcm_networkmanagement"
readonly property bool kcmAuthorized: KCMShell.authorize("kcm_networkmanagement.desktop").length == 1
Plasmoid.toolTipMainText: i18n("Networks")
Plasmoid.toolTipSubText: networkStatus.activeConnections
......@@ -45,7 +45,7 @@ Item {
}
function action_openKCM() {
KCMShell.open(kcm)
KCMShell.openSystemSettings(kcm)
}
function action_showPortal() {
......
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