From 01f2a82b199e5bb659f9f3ae66c555eac7acfae3 Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Sat, 17 Mar 2018 18:16:20 -0400 Subject: [PATCH] MacGUI: Select newly saved preset on creation. --- macosx/HBController.m | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.40.0