From 43a9cb1644f2e58d55d46ce3686cb07fd6a9275d Mon Sep 17 00:00:00 2001 From: Louis Pontoise Date: Wed, 12 Aug 2020 00:46:03 +0900 Subject: [PATCH] fix: checkboxes not showing properly on macos 10.13 (see #507) --- src/ui/preferences-window/LabelAndControl.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/preferences-window/LabelAndControl.swift b/src/ui/preferences-window/LabelAndControl.swift index b3f2f9be..c53cdc93 100644 --- a/src/ui/preferences-window/LabelAndControl.swift +++ b/src/ui/preferences-window/LabelAndControl.swift @@ -16,7 +16,7 @@ class LabelAndControl: NSObject { } static func makeLabelWithCheckbox(_ labelText: String, _ rawName: String, extraAction: ActionClosure? = nil, labelPosition: LabelPosition = .leftWithSeparator) -> [NSView] { - let checkbox = NSButton(checkboxWithTitle: labelPosition == .right ? labelText : "", target: nil, action: nil) + let checkbox = NSButton(checkboxWithTitle: labelPosition == .right ? labelText : " ", target: nil, action: nil) checkbox.translatesAutoresizingMaskIntoConstraints = false checkbox.state = (Preferences.getString(rawName)! as NSString).boolValue ? .on : .off let views = makeLabelWithProvidedControl(labelText, rawName, checkbox, labelPosition: labelPosition, extraAction: extraAction)