mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-12 16:52:10 -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;
|
||||
|
||||
@@ -75,7 +75,9 @@ var SPEC = {
|
||||
|
||||
vpnLastConnected: { def: "" },
|
||||
|
||||
deviceMaxVolumes: { def: {} }
|
||||
deviceMaxVolumes: { def: {} },
|
||||
hiddenOutputDeviceNames: { def: [] },
|
||||
hiddenInputDeviceNames: { def: [] }
|
||||
};
|
||||
|
||||
function getValidKeys() {
|
||||
|
||||
Reference in New Issue
Block a user