rsaeks / jAlly

12 stars 2 forks source link

Logic check for restriction buttons #22

Closed rsaeks closed 6 years ago

rsaeks commented 6 years ago

If the Exception Group ID stays 0, gray out the Restrictions buttons so they can't be used

rsaeks commented 6 years ago

Added in logic:

    if jssGIDLabel.text == "JSS GID HERE" || jssGIDLabel.text == "" {
        removeRestritionsButton.isEnabled = false
        reapplyRestrictionsButton.isEnabled = false
    }
    else {
        removeRestritionsButton.isEnabled = true
        reapplyRestrictionsButton.isEnabled = true
    }
rsaeks commented 6 years ago

Added in 1.3B1