aerothemeplasma/plasma/plasmoids/io.gitgud.wackyideas.win7showdesktop/contents/ui/CommandController.qml
2024-08-09 03:20:25 +02:00

25 lines
512 B
QML

/*
SPDX-FileCopyrightText: 2022 ivan (@ratijas) tkachenko <me@ratijas.tk>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import org.kde.plasma.plasmoid 2.0
Controller {
id: controller
titleInactive: i18nc("@action:button", "Run custom command")
titleActive: titleInactive
descriptionActive: i18nc("@info:tooltip", "Run user-defined command when pressed")
descriptionInactive: descriptionActive
active: false
// override
function toggle() {
root.exec(Plasmoid.configuration.click_command);
}
}