Review everything shipped this weekend, and fix what the reviewers caught
Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
@@ -60,6 +60,24 @@ SettingsPage {
|
||||
setting: "overAmplification"
|
||||
divider: false
|
||||
}
|
||||
|
||||
// Turning over-amplification off has to bring the level down with it.
|
||||
// The preference only moves the top of the range; PipeWire keeps
|
||||
// whatever was set, so a device left at 140% stays there with a slider
|
||||
// that now ends at 100 and shows itself pinned at full. Nothing the
|
||||
// page can do afterwards expresses the difference, and the reading is
|
||||
// wrong until something else happens to move the volume.
|
||||
Connections {
|
||||
target: Settings
|
||||
|
||||
function onOverAmplificationChanged(): void {
|
||||
if (Settings.overAmplification)
|
||||
return;
|
||||
const audio = root.currentOutput?.audio ?? null;
|
||||
if (audio && audio.volume > 1)
|
||||
audio.volume = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SettingsCard {
|
||||
|
||||
Reference in New Issue
Block a user