Parcourir la source

Remove some more "advanced" settings leftovers

These were harmless; removing them just simplifies the code.
Vincent Lang il y a 7 ans
Parent
commit
8a2b00e506

+ 0 - 1
resources/settings/settings_description.json

@@ -161,7 +161,6 @@
       {
         "value": "exclusive",
         "default": false,
-        "hidden": true,
         "platforms": [ "osx", "windows" ]
       },
       {

+ 1 - 4
src/settings/AudioSettingsController.cpp

@@ -28,7 +28,6 @@ void AudioSettingsController::valuesUpdated(const QVariantMap& values)
   SettingsSection* audioSection = SettingsComponent::Get().getSection(SETTINGS_SECTION_AUDIO);
   auto prevDescriptions = audioSection->descriptions();
 
-  bool advanced = true;
   QString type = SettingsComponent::Get().value(SETTINGS_SECTION_AUDIO, "devicetype").toString();
 
   audioSection->setValueHidden("channels", false);
@@ -39,7 +38,7 @@ void AudioSettingsController::valuesUpdated(const QVariantMap& values)
   }
   else if (type == AUDIO_DEVICE_TYPE_HDMI)
   {
-    setHiddenPassthrough(PlayerComponent::AudioCodecsAll(), !advanced);
+    setHiddenPassthrough(PlayerComponent::AudioCodecsAll(), false);
   }
   else if (type == AUDIO_DEVICE_TYPE_SPDIF)
   {
@@ -48,8 +47,6 @@ void AudioSettingsController::valuesUpdated(const QVariantMap& values)
     audioSection->setValueHidden("channels", true);
   }
 
-  audioSection->setValueHidden("exclusive", !advanced);
-
   auto newDescriptions = audioSection->descriptions();
   if (prevDescriptions != newDescriptions)
     emit settingsUpdated(SETTINGS_SECTION_AUDIO, newDescriptions);