fixed metal hud preference resetting to default
Some checks failed
Build Go/Fyne App for macOS ARM64 / build (push) Has been cancelled

This commit is contained in:
aomizu
2025-07-13 09:08:30 +09:00
parent 58ad8b7cd3
commit 488d10cb8b
4 changed files with 9 additions and 3 deletions

View File

@@ -25,9 +25,14 @@ func createOptionsComponents() {
metalHudCheckbox = widget.NewCheck("Enable Metal Hud (show FPS)", func(checked bool) {
launcher.EnableMetalHud = checked
// Save to preferences
prefs, _ := utils.LoadPrefs()
prefs.EnableMetalHud = checked
utils.SavePrefs(prefs)
debug.Printf("Metal HUD enabled: %v", launcher.EnableMetalHud)
})
metalHudCheckbox.SetChecked(launcher.EnableMetalHud)
metalHudCheckbox.SetChecked(prefs.EnableMetalHud)
launcher.EnableMetalHud = prefs.EnableMetalHud
showTerminalCheckbox = widget.NewCheck("Show Terminal", func(checked bool) {
// Save to preferences