Warning, /plasma/plasma-bigscreen/containments/homescreen/package/contents/ui/launcher/SettingActions.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2019 Aditya Mehra <aix.m@outlook.com>
0003     SPDX-FileCopyrightText: 2015 Marco Martin <mart@kde.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 import QtQuick 2.14
0009 import QtQuick.Controls 2.14 as Controls
0010 import org.kde.plasma.plasmoid 2.0
0011 
0012 Item {
0013     id: settingActions
0014 
0015     function launchSettings(kcm_id) {
0016         if (kcm_id.indexOf("kcm_mediacenter_wallpaper") != -1) {
0017             plasmoid.action("configure").trigger();
0018         } else if (kcm_id.indexOf("kcm_mediacenter_mycroft_skill_installer") != -1) {
0019             plasmoid.executeCommand("MycroftSkillInstaller")
0020         } else {
0021             plasmoid.executeCommand("plasma-settings -s -m " + kcm_id)
0022         }
0023     }
0024 }