Skip to content

Commit

Permalink
Fixed an issue with add contact form not respecting global "allow sub…
Browse files Browse the repository at this point in the history
…scription"/"request subscription" settings #beagleim-267
  • Loading branch information
hantu85 committed Aug 17, 2020
1 parent 836057e commit 29cb19f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BeagleIM/roster/AddContactController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 29cb19f

Please sign in to comment.