forked from Shinonome/dots-hyprland
settings app: allow volume limit over 100%
This commit is contained in:
@@ -103,7 +103,7 @@ Singleton {
|
|||||||
// Prevent sudden bangs
|
// Prevent sudden bangs
|
||||||
property bool enable: true
|
property bool enable: true
|
||||||
property real maxAllowedIncrease: 10
|
property real maxAllowedIncrease: 10
|
||||||
property real maxAllowed: 90 // Realistically should already provide some protection when it's 99...
|
property real maxAllowed: 99
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ ContentPage {
|
|||||||
text: Translation.tr("Volume limit")
|
text: Translation.tr("Volume limit")
|
||||||
value: Config.options.audio.protection.maxAllowed
|
value: Config.options.audio.protection.maxAllowed
|
||||||
from: 0
|
from: 0
|
||||||
to: 100
|
to: 154 // pavucontrol allows up to 153%
|
||||||
stepSize: 2
|
stepSize: 2
|
||||||
onValueChanged: {
|
onValueChanged: {
|
||||||
Config.options.audio.protection.maxAllowed = value;
|
Config.options.audio.protection.maxAllowed = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user