[gnome-tweaks] general: Don't show Over-Amplification in the Pop session either
- From: Jeremy Bicha <jbicha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tweaks] general: Don't show Over-Amplification in the Pop session either
- Date: Sun, 26 Aug 2018 21:40:14 +0000 (UTC)
commit 7c330982af8a74767ad1fadf05daf1e947044a18
Author: Jeremy Bicha <jbicha ubuntu com>
Date: Sun Aug 26 17:16:39 2018 -0400
general: Don't show Over-Amplification in the Pop session either
Don't show in the Pop session either since Pop is based on Ubuntu. If a
3rd party distro offers a Pop or Ubuntu session, the distro should patch
this out unless they take Ubuntu's 70_allow_sound_above_100.patch for
gnome-control-center.
gtweak/tweaks/tweak_group_general.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_general.py b/gtweak/tweaks/tweak_group_general.py
index 2124691..d3680af 100644
--- a/gtweak/tweaks/tweak_group_general.py
+++ b/gtweak/tweaks/tweak_group_general.py
@@ -11,7 +11,7 @@ from gtweak.widgets import ListBoxTweakGroup, GetterSetterSwitchTweak, GSettings
from gtweak.utils import AutostartFile
_shell = GnomeShellFactory().get_shell()
-_shell_not_ubuntu = _shell.mode != 'ubuntu'
+_shell_not_ubuntu = _shell.mode != 'ubuntu' and _shell.mode != 'pop'
class IgnoreLidSwitchTweak(GetterSetterSwitchTweak):
def __init__(self, **options):
@@ -50,7 +50,11 @@ TWEAK_GROUPS = [
ListBoxTweakGroup(_("General"),
GSettingsSwitchTweak(_("Animations"), "org.gnome.desktop.interface", "enable-animations"),
IgnoreLidSwitchTweak(),
- # Don't show this setting in the Ubuntu session since this setting is in gnome-control-center there
+ # Don't show this setting in the Ubuntu session since this setting is
+ # in gnome-control-center there. Don't show in the Pop session either
+ # since Pop is based on Ubuntu. If a 3rd party distro offers a Pop or
+ # Ubuntu session, the distro should patch this out unless they take
+ # Ubuntu's 70_allow_sound_above_100.patch for gnome-control-center.
GSettingsSwitchTweak(_("Over-Amplification"), "org.gnome.desktop.sound",
"allow-volume-above-100-percent",
desc=_("Allows raising the volume above 100%. This can result in a loss of audio quality; it is
better to increase application volume settings, if possible."), loaded=_shell_not_ubuntu),
),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]