Hide quality presets outside CRF mode

This commit is contained in:
Stu Leak 2025-12-20 16:22:48 -05:00
parent e002b586b1
commit 7b264c7224
3 changed files with 5 additions and 2 deletions

View File

@ -830,6 +830,7 @@ This file tracks completed features, fixes, and milestones.
- ✅ Added 0.5/1.0 Mbps bitrate presets and simplified preset names
- ✅ Default bitrate preset normalized to 2.5 Mbps to avoid "select one"
- ✅ Linked simple and advanced bitrate presets so they stay in sync
- ✅ Hide quality presets when bitrate mode is not CRF
- ✅ Stabilized video seeking and embedded rendering
- ✅ Improved player window positioning
- ✅ Fixed clear video functionality

View File

@ -63,6 +63,7 @@ This file tracks upcoming features, improvements, and known issues.
- Bitrate presets expanded to include 0.5/1.0 Mbps and renamed for clarity
- Default bitrate preset normalized to 2.5 Mbps to prevent empty select
- Simple/advanced bitrate presets synced
- Quality presets hidden when bitrate mode is not CRF
*Last Updated: 2025-12-20*

View File

@ -6824,16 +6824,17 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
updateQualityVisibility = func() {
hide := strings.Contains(strings.ToLower(state.convert.SelectedFormat.Label), "h.265") ||
strings.EqualFold(state.convert.VideoCodec, "H.265")
hideQuality := state.convert.BitrateMode != "" && state.convert.BitrateMode != "CRF"
if qualitySectionSimple != nil {
if hide {
if hide || hideQuality {
qualitySectionSimple.Hide()
} else {
qualitySectionSimple.Show()
}
}
if qualitySectionAdv != nil {
if hide {
if hide || hideQuality {
qualitySectionAdv.Hide()
} else {
qualitySectionAdv.Show()