volumeosd: Fix missing import

This commit is contained in:
Devin Lin 2024-06-24 20:07:40 -04:00
parent 3c81efa21c
commit 3d90cee0c1

View file

@ -17,6 +17,8 @@ import org.kde.plasma.private.nanoshell 2.0 as NanoShell
import org.kde.plasma.private.mobileshell as MobileShell import org.kde.plasma.private.mobileshell as MobileShell
import org.kde.plasma.private.mobileshell.state as MobileShellState import org.kde.plasma.private.mobileshell.state as MobileShellState
import org.kde.plasma.private.volume
NanoShell.FullScreenOverlay { NanoShell.FullScreenOverlay {
id: window id: window
@ -32,7 +34,7 @@ NanoShell.FullScreenOverlay {
Behavior on color { Behavior on color {
ColorAnimation {} ColorAnimation {}
} }
function showOverlay() { function showOverlay() {
if (!window.visible) { if (!window.visible) {
window.showFullApplet = false; window.showFullApplet = false;
@ -49,7 +51,7 @@ NanoShell.FullScreenOverlay {
hideTimer.triggered(); hideTimer.triggered();
} }
} }
Timer { Timer {
id: hideTimer id: hideTimer
interval: 3000 interval: 3000
@ -59,7 +61,7 @@ NanoShell.FullScreenOverlay {
window.showFullApplet = false; window.showFullApplet = false;
} }
} }
Flickable { Flickable {
id: flickable id: flickable
anchors.fill: parent anchors.fill: parent