Skip to content

Commit

Permalink
Ensure KVO works for USB config options (google#853)
Browse files Browse the repository at this point in the history
Ensure KVO works for USB config options.
  • Loading branch information
pmarkowsky authored Jul 15, 2022
1 parent 743c567 commit 234f81e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Source/common/SNTConfigurator.m
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,26 @@ + (NSSet *)keyPathsForValuesAffectingEnableBadSignatureProtection {
return [self configStateSet];
}

+ (NSSet *)keyPathsForValuesAffectingBlockUSBMount {
return [self syncAndConfigStateSet];
}

+ (NSSet *)keyPathsForValuesAffectingBannedUSBBlockMessage {
return [self configStateSet];
}

+ (NSSet *)keyPathsForValuesAffectingRemountUSBMode {
return [self configStateSet];
}

+ (NSSet *)keyPathsForValuesAffectingRemountUSBBlockMessage {
return [self syncAndConfigStateSet];
}

+ (NSSet *)keyPathsForValuesAffectingUsbBlockMessage {
return [self syncAndConfigStateSet];
}

#pragma mark Public Interface

- (SNTClientMode)clientMode {
Expand Down

0 comments on commit 234f81e

Please sign in to comment.