mirror of
https://github.com/ksherlock/ample.git
synced 2024-06-08 18:29:30 +00:00
base the export shell script default name on the machine name.
This commit is contained in:
parent
dc7adde938
commit
9626a6588f
|
@ -425,9 +425,12 @@ static NSString *ShellQuote(NSString *s) {
|
||||||
-(IBAction)exportShellScript: (id)sender {
|
-(IBAction)exportShellScript: (id)sender {
|
||||||
|
|
||||||
NSSavePanel *p = [NSSavePanel savePanel];
|
NSSavePanel *p = [NSSavePanel savePanel];
|
||||||
|
|
||||||
|
NSString *defaultName = [_mameMachine stringByAppendingString: @".sh"];
|
||||||
|
|
||||||
[p setTitle: @"Export Shell Script"];
|
[p setTitle: @"Export Shell Script"];
|
||||||
[p setExtensionHidden: NO];
|
[p setExtensionHidden: NO];
|
||||||
[p setNameFieldStringValue: @"mame.sh"];
|
[p setNameFieldStringValue: defaultName];
|
||||||
|
|
||||||
//[p setDelegate: self];
|
//[p setDelegate: self];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user