From a210d215c26434cd115963d99ab94ad8d3748661 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Tue, 10 Jan 2023 23:38:15 +0800 Subject: [PATCH] PrefWindow // Allow enabling / disabling external dictionary plists. --- .../WindowControllers/CtlPrefWindow.swift | 5 +++- .../WindowNIBs/Base.lproj/frmPrefWindow.xib | 28 +++++++++++++------ .../WindowNIBs/en.lproj/frmPrefWindow.strings | 1 + .../WindowNIBs/ja.lproj/frmPrefWindow.strings | 1 + .../zh-Hans.lproj/frmPrefWindow.strings | 1 + .../zh-Hant.lproj/frmPrefWindow.strings | 1 + 6 files changed, 28 insertions(+), 9 deletions(-) diff --git a/Source/Modules/WindowControllers/CtlPrefWindow.swift b/Source/Modules/WindowControllers/CtlPrefWindow.swift index 7d7cf9dd..0722fa7c 100644 --- a/Source/Modules/WindowControllers/CtlPrefWindow.swift +++ b/Source/Modules/WindowControllers/CtlPrefWindow.swift @@ -29,7 +29,6 @@ extension NSToolbarItem.Identifier { // It should be set as "Preferences" which correspondes to the "Preference" pref pane // of this build target. class CtlPrefWindow: NSWindowController, NSWindowDelegate { - @IBOutlet var fontSizePopUpButton: NSPopUpButton! @IBOutlet var uiLanguageButton: NSPopUpButton! @IBOutlet var basicKeyboardLayoutButton: NSPopUpButton! @IBOutlet var selectionKeyComboBox: NSComboBox! @@ -267,6 +266,10 @@ class CtlPrefWindow: NSWindowController, NSWindowDelegate { } } + @IBAction func toggledExternalFactoryPlistDataOnOff(_: NSButton) { + LMMgr.reloadFactoryDictionaryPlists() + } + @IBAction func resetSpecifiedUserDataFolder(_: Any) { LMMgr.resetSpecifiedUserDataFolder() } diff --git a/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib b/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib index 0f083af5..032ce3e1 100644 --- a/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib +++ b/Source/WindowNIBs/Base.lproj/frmPrefWindow.xib @@ -19,7 +19,6 @@ - @@ -876,14 +875,14 @@ - + - + - + @@ -891,7 +890,7 @@ - + @@ -950,7 +949,7 @@ +