mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-03 20:32:07 -04:00
audio: New ability to hide input/output devices
- Updated slider presets - Disabled mouse wheel scrolling on list scroll
This commit is contained in:
@@ -123,6 +123,8 @@ Singleton {
|
||||
property string vpnLastConnected: ""
|
||||
|
||||
property var deviceMaxVolumes: ({})
|
||||
property var hiddenOutputDeviceNames: []
|
||||
property var hiddenInputDeviceNames: []
|
||||
|
||||
Component.onCompleted: {
|
||||
if (!isGreeterMode) {
|
||||
@@ -1069,6 +1071,20 @@ Singleton {
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
function setHiddenOutputDeviceNames(deviceNames) {
|
||||
if (!Array.isArray(deviceNames))
|
||||
return;
|
||||
hiddenOutputDeviceNames = deviceNames;
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
function setHiddenInputDeviceNames(deviceNames) {
|
||||
if (!Array.isArray(deviceNames))
|
||||
return;
|
||||
hiddenInputDeviceNames = deviceNames;
|
||||
saveSettings();
|
||||
}
|
||||
|
||||
function getDeviceMaxVolume(nodeName) {
|
||||
if (!nodeName)
|
||||
return 100;
|
||||
|
||||
Reference in New Issue
Block a user