mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-27 06:52:50 -05:00
osd: add option to disable each OSD
This commit is contained in:
@@ -15,13 +15,13 @@ DankOSD {
|
||||
target: AudioService.sink && AudioService.sink.audio ? AudioService.sink.audio : null
|
||||
|
||||
function onVolumeChanged() {
|
||||
if (!AudioService.suppressOSD) {
|
||||
if (!AudioService.suppressOSD && SettingsData.osdVolumeEnabled) {
|
||||
root.show()
|
||||
}
|
||||
}
|
||||
|
||||
function onMutedChanged() {
|
||||
if (!AudioService.suppressOSD) {
|
||||
if (!AudioService.suppressOSD && SettingsData.osdVolumeEnabled) {
|
||||
root.show()
|
||||
}
|
||||
}
|
||||
@@ -31,7 +31,7 @@ DankOSD {
|
||||
target: AudioService
|
||||
|
||||
function onSinkChanged() {
|
||||
if (root.shouldBeVisible) {
|
||||
if (root.shouldBeVisible && SettingsData.osdVolumeEnabled) {
|
||||
root.show()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user