From 9626a6588f57f974cdef444671e1ecf8a8e65d7a Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 8 Mar 2021 21:15:15 -0500 Subject: [PATCH] base the export shell script default name on the machine name. --- Ample/LaunchWindowController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Ample/LaunchWindowController.m b/Ample/LaunchWindowController.m index d225aa0..673187c 100644 --- a/Ample/LaunchWindowController.m +++ b/Ample/LaunchWindowController.m @@ -425,9 +425,12 @@ static NSString *ShellQuote(NSString *s) { -(IBAction)exportShellScript: (id)sender { NSSavePanel *p = [NSSavePanel savePanel]; + + NSString *defaultName = [_mameMachine stringByAppendingString: @".sh"]; + [p setTitle: @"Export Shell Script"]; [p setExtensionHidden: NO]; - [p setNameFieldStringValue: @"mame.sh"]; + [p setNameFieldStringValue: defaultName]; //[p setDelegate: self];