From cf0c99a06d56bbe15430cef8fea765244f51c559 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 4 Jun 2022 21:24:33 +0800 Subject: [PATCH] PrefUI // Fix selShowPageButtonsInCandidateUI. --- Source/UI/PrefUI/suiPrefPaneGeneral.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/UI/PrefUI/suiPrefPaneGeneral.swift b/Source/UI/PrefUI/suiPrefPaneGeneral.swift index c77cf25c..1551f0e9 100644 --- a/Source/UI/PrefUI/suiPrefPaneGeneral.swift +++ b/Source/UI/PrefUI/suiPrefPaneGeneral.swift @@ -126,7 +126,13 @@ struct suiPrefPaneGeneral: View { .preferenceDescription() Toggle( LocalizedStringKey("Show page buttons in candidate window"), isOn: $selShowPageButtonsInCandidateUI - ).controlSize(.small) + ).onChange( + of: selShowPageButtonsInCandidateUI, + perform: { value in + mgrPrefs.showPageButtonsInCandidateWindow = value + } + ) + .controlSize(.small) } Preferences.Section(bottomDivider: true, label: { Text(LocalizedStringKey("Output Settings:")) }) { Toggle(