mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
22 lines
702 B
QML
22 lines
702 B
QML
// SPDX-FileCopyrightText: 2023 Devin Lin <devin@kde.org>
|
|
// SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
|
|
import QtQuick
|
|
|
|
pragma Singleton
|
|
|
|
/**
|
|
* This wraps the VolumeOSDProvider component so that we can avoid loading side
|
|
* effects from imports (since this is a singleton and initialized immediately on import).
|
|
*/
|
|
Loader {
|
|
id: root
|
|
source: "qrc:/org/kde/plasma/private/mobileshell/qml/volumeosd/VolumeOSDProvider.qml"
|
|
|
|
// WARNING: only call this load from within the plasmashell process, because
|
|
// multiple bindings of the shortcut may break it entirely (hardware volume keys)
|
|
function load() {
|
|
root.active = true;
|
|
}
|
|
}
|
|
|