From c50a6f8cba6499d2ba7158b94faa9407dd9557ae Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 16 Mar 2021 20:57:50 +0100 Subject: [PATCH] The volume control slider is now hidden on BSD Unix. --- es-app/src/guis/GuiMenu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index 46d5e7a2b..87207a536 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -490,9 +490,9 @@ void GuiMenu::openSoundSettings() { auto s = new GuiSettings(mWindow, "SOUND SETTINGS"); - // TEMPORARY - Hide the volume slider on macOS until the volume control logic - // has been implemented for this operating system. - #if !defined(__APPLE__) + // TEMPORARY - Hide the volume slider on macOS and BSD Unix until the volume control logic + // has been implemented for these operating systems. + #if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) // System volume. auto system_volume = std::make_shared(mWindow, 0.f, 100.f, 1.f, "%"); system_volume->setValue(static_cast(VolumeControl::getInstance()->getVolume()));