summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-10-19 19:05:07 +0200
committerDamiano Galassi <[email protected]>2015-10-19 19:05:07 +0200
commit943a6385c1cbd15c394372114d7c710fb1747861 (patch)
tree433698e752891b5a70f7b2cc1f1c2725a2c159fa /macosx
parent28bdaf6e2884474adde3f5d47c673ca52813c6cb (diff)
MacGui: rename the 'send to app' preference keys and removed the default app.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/English.lproj/Preferences.xib8
-rw-r--r--macosx/HBPreferencesController.m3
-rw-r--r--macosx/HBQueueController.m10
3 files changed, 12 insertions, 9 deletions
diff --git a/macosx/English.lproj/Preferences.xib b/macosx/English.lproj/Preferences.xib
index f27266974..d885dfcad 100644
--- a/macosx/English.lproj/Preferences.xib
+++ b/macosx/English.lproj/Preferences.xib
@@ -139,7 +139,7 @@
<font key="font" metaFont="smallSystem"/>
</buttonCell>
<connections>
- <binding destination="61" name="value" keyPath="values.SendCompletedEncodeToApp" id="Uq2-2B-VTm"/>
+ <binding destination="61" name="value" keyPath="values.HBSendToAppEnabled" id="Kff-6m-jt9"/>
</connections>
</button>
<button id="243">
@@ -189,7 +189,11 @@
</connections>
</textFieldCell>
<connections>
- <binding destination="61" name="value" keyPath="values.SendCompletedEncodeToApp" id="454"/>
+ <binding destination="61" name="value" keyPath="values.HBSendToApp" id="f36-PN-c5F">
+ <dictionary key="options">
+ <string key="NSNullPlaceholder">None</string>
+ </dictionary>
+ </binding>
</connections>
</textField>
<button verticalHuggingPriority="750" id="450">
diff --git a/macosx/HBPreferencesController.m b/macosx/HBPreferencesController.m
index 0ec9c5637..80eab0a2e 100644
--- a/macosx/HBPreferencesController.m
+++ b/macosx/HBPreferencesController.m
@@ -75,7 +75,6 @@
@"MinTitleScanSeconds": @"10",
@"PreviewsNumber": @"10",
@"x264CqSliderFractional": @"0.50",
- @"SendCompletedEncodeToApp": @"MetaX",
@"HBShowAdvancedTab": @NO,
@"HBAutoNamingFormat": @[@"{Source}", @" ", @"{Title}"],
// Hash of the default folders, until there is a better way.
@@ -208,7 +207,7 @@
NSString *sendToAppName = [[sendToAppURL lastPathComponent] stringByDeletingPathExtension];
/* we set the name of the app to send to in the display field */
[fSendEncodeToAppField setStringValue:sendToAppName];
- [[NSUserDefaults standardUserDefaults] setObject:[fSendEncodeToAppField stringValue] forKey:@"SendCompletedEncodeToApp"];
+ [[NSUserDefaults standardUserDefaults] setObject:[fSendEncodeToAppField stringValue] forKey:@"HBSendToApp"];
}
}];
}
diff --git a/macosx/HBQueueController.m b/macosx/HBQueueController.m
index 5c99507b0..624d03700 100644
--- a/macosx/HBQueueController.m
+++ b/macosx/HBQueueController.m
@@ -824,16 +824,16 @@
- (void)sendToExternalApp:(NSURL *)fileURL
{
// This end of encode action is called as each encode rolls off of the queue
- if ([[NSUserDefaults standardUserDefaults] boolForKey:@"SendCompletedEncodeToApp"] == YES)
+ if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HBSendToAppEnabled"] == YES)
{
NSWorkspace *workspace = [NSWorkspace sharedWorkspace];
- NSString *sendToApp = [workspace fullPathForApplication:[[NSUserDefaults standardUserDefaults] objectForKey:@"SendCompletedEncodeToApp"]];
+ NSString *app = [workspace fullPathForApplication:[[NSUserDefaults standardUserDefaults] objectForKey:@"HBSendToApp"]];
- if (sendToApp)
+ if (app)
{
- if (![workspace openFile:fileURL.path withApplication:sendToApp])
+ if (![workspace openFile:fileURL.path withApplication:app])
{
- [HBUtilities writeToActivityLog:"Failed to send file to: %s", sendToApp];
+ [HBUtilities writeToActivityLog:"Failed to send file to: %s", app];
}
}
else