summaryrefslogtreecommitdiffstats
path: root/macosx/HBPresetsViewController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2020-06-27 14:13:12 +0200
committerDamiano Galassi <[email protected]>2020-06-27 14:13:12 +0200
commit8465fc2fd9ebc8f46192f24c7e9a555b4107d342 (patch)
tree559051b2e860d164352e0b2e4b671f5727b9ecbd /macosx/HBPresetsViewController.m
parent1541c6b4aab334be0f640ced71ab0d1ddbaf48fa (diff)
MacGui: enable CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER warning and fix the related warnings. Improved toolbars and alerts when compiling with the macOS 11 sdk.
Diffstat (limited to 'macosx/HBPresetsViewController.m')
-rw-r--r--macosx/HBPresetsViewController.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/macosx/HBPresetsViewController.m b/macosx/HBPresetsViewController.m
index 360b20e85..5b6d18453 100644
--- a/macosx/HBPresetsViewController.m
+++ b/macosx/HBPresetsViewController.m
@@ -336,6 +336,13 @@ static void *HBPresetsViewControllerContext = &HBPresetsViewControllerContext;
[alert addButtonWithTitle:NSLocalizedString(@"Delete Preset", @"Delete preset alert -> first button")];
}
+#if defined(NSAppKitVersionNumber10_15)
+ if (@available(macOS 10.16, *))
+ {
+ alert.buttons.lastObject.hasDestructiveAction = true;
+ }
+#endif
+
[alert addButtonWithTitle:NSLocalizedString(@"Cancel", @"Delete preset alert -> second button")];
NSInteger status = [alert runModal];