fix: fixed the NSButton width in the settings (#708)

This commit is contained in:
Serhiy Mytrovtsiy
2021-11-21 11:17:33 +01:00
parent 1fcfcbcac0
commit 50dd06c71d

View File

@@ -248,7 +248,6 @@ public extension NSView {
toggle = switchButton
} else {
let button: NSButton = NSButton()
button.widthAnchor.constraint(equalToConstant: button.bounds.width).isActive = true
button.setButtonType(.switch)
button.state = state
button.title = ""