diff options
author | Damiano Galassi <[email protected]> | 2021-01-04 18:19:19 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2021-01-04 18:19:19 +0100 |
commit | 5a625a6762b6378c2bab15d4634bab8f2e503ab5 (patch) | |
tree | ee9f3b277e76c2be7f016ad5d9517e038d78a436 /macosx/HBPreset.m | |
parent | 36f66956c3a391feec1b13cbf01f6e5c87b9bf94 (diff) |
MacGui: disable unsupported hardware presets.
Diffstat (limited to 'macosx/HBPreset.m')
-rw-r--r-- | macosx/HBPreset.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/macosx/HBPreset.m b/macosx/HBPreset.m index f0fec1310..68911e68f 100644 --- a/macosx/HBPreset.m +++ b/macosx/HBPreset.m @@ -342,6 +342,11 @@ [self.delegate nodeDidChange:self]; } +- (BOOL)isSupported +{ + return [_content[@"PresetDisabled"] boolValue] == NO; +} + #pragma mark - Keys - (id)objectForKey:(NSString *)key |