Hide benchmark indicator when user clicks Apply Benchmark
User feedback: Benchmark indicator should disappear entirely once applied, not just show "Applied" status. Changes: - Modified Apply Benchmark button callback to hide the entire indicator - Removed code that changed text/color and disabled button - Cleaner UI - indicator completely disappears after applying settings
This commit is contained in:
parent
ea1832aece
commit
6f6daa9b9b
6
main.go
6
main.go
|
|
@ -6307,10 +6307,8 @@ func buildConvertView(state *appState, src *videoSource) fyne.CanvasObject {
|
||||||
|
|
||||||
benchmarkApplyBtn = widget.NewButton("Apply Benchmark", func() {
|
benchmarkApplyBtn = widget.NewButton("Apply Benchmark", func() {
|
||||||
state.applyBenchmarkRecommendation(encoder, preset)
|
state.applyBenchmarkRecommendation(encoder, preset)
|
||||||
benchmarkStatus.Text = "Benchmark: Applied"
|
// Hide the entire indicator once applied
|
||||||
benchmarkStatus.Color = utils.MustHex("#4CE870")
|
benchmarkIndicator.Hide()
|
||||||
benchmarkStatus.Refresh()
|
|
||||||
benchmarkApplyBtn.Disable()
|
|
||||||
})
|
})
|
||||||
benchmarkApplyBtn.Importance = widget.MediumImportance
|
benchmarkApplyBtn.Importance = widget.MediumImportance
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user