Hide quality presets outside CRF mode
This commit is contained in:
parent
f5b4842210
commit
2bc86c01a2
1
DONE.md
1
DONE.md
|
|
@ -830,6 +830,7 @@ This file tracks completed features, fixes, and milestones.
|
||||||
- ✅ Added 0.5/1.0 Mbps bitrate presets and simplified preset names
|
- ✅ Added 0.5/1.0 Mbps bitrate presets and simplified preset names
|
||||||
- ✅ Default bitrate preset normalized to 2.5 Mbps to avoid "select one"
|
- ✅ Default bitrate preset normalized to 2.5 Mbps to avoid "select one"
|
||||||
- ✅ Linked simple and advanced bitrate presets so they stay in sync
|
- ✅ 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
|
- ✅ Stabilized video seeking and embedded rendering
|
||||||
- ✅ Improved player window positioning
|
- ✅ Improved player window positioning
|
||||||
- ✅ Fixed clear video functionality
|
- ✅ Fixed clear video functionality
|
||||||
|
|
|
||||||
1
TODO.md
1
TODO.md
|
|
@ -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
|
- 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
|
- Default bitrate preset normalized to 2.5 Mbps to prevent empty select
|
||||||
- Simple/advanced bitrate presets synced
|
- Simple/advanced bitrate presets synced
|
||||||
|
- Quality presets hidden when bitrate mode is not CRF
|
||||||
|
|
||||||
*Last Updated: 2025-12-20*
|
*Last Updated: 2025-12-20*
|
||||||
|
|
||||||
|
|
|
||||||
5
main.go
5
main.go
|
|
@ -6824,16 +6824,17 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
updateQualityVisibility = func() {
|
updateQualityVisibility = func() {
|
||||||
hide := strings.Contains(strings.ToLower(state.convert.SelectedFormat.Label), "h.265") ||
|
hide := strings.Contains(strings.ToLower(state.convert.SelectedFormat.Label), "h.265") ||
|
||||||
strings.EqualFold(state.convert.VideoCodec, "H.265")
|
strings.EqualFold(state.convert.VideoCodec, "H.265")
|
||||||
|
hideQuality := state.convert.BitrateMode != "" && state.convert.BitrateMode != "CRF"
|
||||||
|
|
||||||
if qualitySectionSimple != nil {
|
if qualitySectionSimple != nil {
|
||||||
if hide {
|
if hide || hideQuality {
|
||||||
qualitySectionSimple.Hide()
|
qualitySectionSimple.Hide()
|
||||||
} else {
|
} else {
|
||||||
qualitySectionSimple.Show()
|
qualitySectionSimple.Show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if qualitySectionAdv != nil {
|
if qualitySectionAdv != nil {
|
||||||
if hide {
|
if hide || hideQuality {
|
||||||
qualitySectionAdv.Hide()
|
qualitySectionAdv.Hide()
|
||||||
} else {
|
} else {
|
||||||
qualitySectionAdv.Show()
|
qualitySectionAdv.Show()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user