Skip to content

Commit

Permalink
Disable setting when transparency is off
Browse files Browse the repository at this point in the history
As per request: gnachman#277 (comment)
  • Loading branch information
Brennan committed Apr 18, 2016
1 parent 0a47276 commit 96ac746
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sources/ProfilesWindowPreferencesViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ - (void)awakeFromNib {
key:KEY_PREVENT_TAB
type:kPreferenceInfoTypeCheckbox];

[self defineControl:_transparencyAffectsOnlyDefaultBackgroundColor
key:KEY_DEFAULT_BG_ALPHA_ONLY
type:kPreferenceInfoTypeCheckbox];
info = [self defineControl:_transparencyAffectsOnlyDefaultBackgroundColor
key:KEY_DEFAULT_BG_ALPHA_ONLY
type:kPreferenceInfoTypeCheckbox];
info.observer = ^() { _transparencyAffectsOnlyDefaultBackgroundColor.enabled = (_transparency.doubleValue > 0); };

[self defineControl:_openToolbelt
key:KEY_OPEN_TOOLBELT
Expand Down

0 comments on commit 96ac746

Please sign in to comment.