From 29cb19f1480c893a90724758dd622d8af3d20d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Wo=CC=81jcik?= Date: Mon, 17 Aug 2020 19:33:22 +0200 Subject: [PATCH] Fixed an issue with add contact form not respecting global "allow subscription"/"request subscription" settings #beagleim-267 --- BeagleIM/roster/AddContactController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BeagleIM/roster/AddContactController.swift b/BeagleIM/roster/AddContactController.swift index cba28c44..3850e55c 100644 --- a/BeagleIM/roster/AddContactController.swift +++ b/BeagleIM/roster/AddContactController.swift @@ -72,6 +72,9 @@ class AddContactController: NSViewController, NSTextFieldDelegate { requestSubscriptionButton = disclosureView.addRow(label: "", field: NSButton(checkboxWithTitle: "Request presence subscription", target: nil, action: nil)); allowSubscriptionButton = disclosureView.addRow(label: "", field: NSButton(checkboxWithTitle: "Allow presence subscription", target: nil, action: nil)); + requestSubscriptionButton.state = Settings.requestPresenceSubscription.bool() ? .on : .off; + allowSubscriptionButton.state = Settings.allowPresenceSubscription.bool() ? .on : .off; + disclosureConstraint = disclosureView.heightAnchor.constraint(equalToConstant: 0); disclosureConstraint.isActive = true; disclosureView.isHidden = true;