From dd1173841b1170854110117a6ff9a62b6090c67b Mon Sep 17 00:00:00 2001 From: kkapsner Date: Thu, 21 Jun 2018 00:17:52 +0200 Subject: [PATCH] Corrected display dependencies --- options/settingsDisplay.js | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/options/settingsDisplay.js b/options/settingsDisplay.js index 1c0a4ec..16f32e9 100644 --- a/options/settingsDisplay.js +++ b/options/settingsDisplay.js @@ -298,17 +298,35 @@ }, { "name": "audioFakeRate", - "displayDependencies": { - "protectAudio": [true], - "displayAdvancedSettings": [true] - } + "displayDependencies": [ + { + "blockMode": ["fakeReadout", "fakeInput"], + "protectAudio": [true], + "displayAdvancedSettings": [true] + }, + { + "blockMode": ["askReadout", "ask", "allow"], + "askDenyMode": ["fake"], + "protectAudio": [true], + "displayAdvancedSettings": [true] + } + ] }, { "name": "audioNoiseLevel", - "displayDependencies": { - "protectAudio": [true], - "displayAdvancedSettings": [true] - } + "displayDependencies": [ + { + "blockMode": ["fakeReadout", "fakeInput"], + "protectAudio": [true], + "displayAdvancedSettings": [true] + }, + { + "blockMode": ["askReadout", "ask", "allow"], + "askDenyMode": ["fake"], + "protectAudio": [true], + "displayAdvancedSettings": [true] + } + ] }, "misc", {