mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-24 13:32:22 +00:00
4c55ad26bb
Also move soundtrack in assets and reuse audio component
13 lines
289 B
QML
13 lines
289 B
QML
import QtQuick 2.13
|
|
import QtMultimedia 5.13
|
|
|
|
Audio {
|
|
id: audio
|
|
|
|
property string track: "error.mp3"
|
|
|
|
source: Qt.resolvedUrl("./../assets/audio" + track)
|
|
audioRole: Audio.NotificationRole
|
|
volume: appSettings.volume
|
|
muted: !appSettings.notificationSoundsEnabled
|
|
} |