summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2018-03-17 18:16:20 -0400
committerBradley Sepos <[email protected]>2018-03-17 18:16:20 -0400
commit01f2a82b199e5bb659f9f3ae66c555eac7acfae3 (patch)
tree11b5303f9214d6ab0b19714a23756c4a853588b0
parent90d3e872972b597be2de8bbfedfd4436c37a6870 (diff)
MacGUI: Select newly saved preset on creation.
-rw-r--r--macosx/HBController.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m
index ee452bf97..15ea6bd07 100644
--- a/macosx/HBController.m
+++ b/macosx/HBController.m
@@ -1499,6 +1499,13 @@
- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
{
__unused HBAddPresetController *addPresetController = (HBAddPresetController *)CFBridgingRelease(contextInfo);
+
+ if (returnCode == NSModalResponseContinue)
+ {
+ fPresetsView.selectedPreset = addPresetController.preset;
+ [self applyPreset:fPresetsView.selectedPreset];
+ [[NSNotificationCenter defaultCenter] postNotificationName:HBPresetsChangedNotification object:nil];
+ }
}
- (HBPreset *)createPresetFromCurrentSettings