// SPDX-FileCopyrightText: 2023 Devin Lin // SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL import QtQuick import org.kde.plasma.private.mobileshell as MobileShell 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 sourceComponent: Component { MobileShell.VolumeOSDProvider {} } // 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; } }