diff options
author | Damiano Galassi <[email protected]> | 2015-10-25 07:41:28 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2015-10-25 07:41:28 +0100 |
commit | 7d7740033448cf58d560efdfa0b78562f6aa62d1 (patch) | |
tree | cf49f413403e0308f122038db8ae9fc5a2ccfb86 | |
parent | b5a8b39d9b2efea411a02bc906f275fc78ba92b4 (diff) |
MacGui: remove the daily and monthly update check option.
-rw-r--r-- | macosx/English.lproj/Preferences.xib | 90 | ||||
-rw-r--r-- | macosx/HBController.m | 4 | ||||
-rw-r--r-- | macosx/HBPreferencesController.m | 7 |
3 files changed, 43 insertions, 58 deletions
diff --git a/macosx/English.lproj/Preferences.xib b/macosx/English.lproj/Preferences.xib index d885dfcad..70b73d246 100644 --- a/macosx/English.lproj/Preferences.xib +++ b/macosx/English.lproj/Preferences.xib @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> -<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9058" systemVersion="15B38b" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none"> +<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9059" systemVersion="15B42" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none"> <dependencies> <deployment identifier="macosx"/> <development version="6300" identifier="xcode"/> - <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9058"/> + <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9059"/> </dependencies> <objects> <customObject id="-2" userLabel="File's Owner" customClass="HBPreferencesController"> @@ -40,46 +40,6 @@ <rect key="frame" x="0.0" y="0.0" width="500" height="376"/> <autoresizingMask key="autoresizingMask"/> <subviews> - <popUpButton verticalHuggingPriority="750" id="374"> - <rect key="frame" x="124" y="338" width="156" height="22"/> - <autoresizingMask key="autoresizingMask"/> - <animations/> - <popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" inset="2" arrowPosition="arrowAtCenter" preferredEdge="maxY" id="375"> - <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> - <font key="font" metaFont="smallSystem"/> - <menu key="menu" title="OtherViews" id="376"> - <items> - <menuItem title="Do Nothing" id="378"/> - <menuItem title="Open Source" id="379"/> - </items> - </menu> - </popUpButtonCell> - <connections> - <accessibilityConnection property="title" destination="275" id="2gt-u6-G1z"/> - <binding destination="61" name="selectedValue" keyPath="values.LaunchSourceBehavior" id="386"/> - </connections> - </popUpButton> - <popUpButton verticalHuggingPriority="750" id="414"> - <rect key="frame" x="324" y="315" width="104" height="22"/> - <autoresizingMask key="autoresizingMask"/> - <animations/> - <popUpButtonCell key="cell" type="push" title="Weekly" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="604800" inset="2" arrowPosition="arrowAtCenter" preferredEdge="maxY" selectedItem="417" id="415"> - <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> - <font key="font" metaFont="smallSystem"/> - <menu key="menu" title="OtherViews" id="416"> - <items> - <menuItem title="Daily" tag="86400" id="419"/> - <menuItem title="Weekly" state="on" tag="604800" id="417"/> - <menuItem title="Monthly" tag="2629800" id="420"/> - </items> - </menu> - </popUpButtonCell> - <connections> - <accessibilityConnection property="title" destination="243" id="8on-qM-5ra"/> - <binding destination="410" name="enabled" keyPath="automaticallyChecksForUpdates" id="433"/> - <binding destination="410" name="selectedTag" keyPath="updateCheckInterval" id="434"/> - </connections> - </popUpButton> <popUpButton verticalHuggingPriority="750" id="289"> <rect key="frame" x="255" y="184" width="96" height="22"/> <autoresizingMask key="autoresizingMask"/> @@ -142,18 +102,6 @@ <binding destination="61" name="value" keyPath="values.HBSendToAppEnabled" id="Kff-6m-jt9"/> </connections> </button> - <button id="243"> - <rect key="frame" x="124" y="318" width="197" height="18"/> - <autoresizingMask key="autoresizingMask"/> - <animations/> - <buttonCell key="cell" type="check" title="Automatically check for updates:" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="305"> - <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> - <font key="font" metaFont="smallSystem"/> - </buttonCell> - <connections> - <binding destination="410" name="value" keyPath="automaticallyChecksForUpdates" id="429"/> - </connections> - </button> <textField verticalHuggingPriority="750" id="242"> <rect key="frame" x="18" y="276" width="103" height="14"/> <autoresizingMask key="autoresizingMask"/> @@ -339,6 +287,40 @@ <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> </textFieldCell> </textField> + <button id="ibT-yk-a1x"> + <rect key="frame" x="123" y="341" width="197" height="18"/> + <autoresizingMask key="autoresizingMask"/> + <animations/> + <buttonCell key="cell" type="check" title="Show Open Source panel" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="Zqz-Kn-xOS"> + <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> + <font key="font" metaFont="smallSystem"/> + </buttonCell> + <connections> + <binding destination="61" name="value" keyPath="values.HBShowOpenPanelAtLaunch" id="hsG-Dx-Mf3"/> + </connections> + </button> + <textField verticalHuggingPriority="750" id="6Qw-bc-4P9"> + <rect key="frame" x="23" y="313" width="98" height="14"/> + <autoresizingMask key="autoresizingMask"/> + <animations/> + <textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Check for update:" id="Gyg-hU-a3l"> + <font key="font" metaFont="smallSystem"/> + <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> + <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> + </textFieldCell> + </textField> + <button id="243"> + <rect key="frame" x="123" y="311" width="226" height="18"/> + <autoresizingMask key="autoresizingMask"/> + <animations/> + <buttonCell key="cell" type="check" title="Automatically check weekly" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="305"> + <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> + <font key="font" metaFont="smallSystem"/> + </buttonCell> + <connections> + <binding destination="410" name="value" keyPath="automaticallyChecksForUpdates" id="429"/> + </connections> + </button> </subviews> <animations/> <point key="canvasLocation" x="42" y="-503"/> diff --git a/macosx/HBController.m b/macosx/HBController.m index d4baf40f6..a0591bb67 100644 --- a/macosx/HBController.m +++ b/macosx/HBController.m @@ -487,13 +487,11 @@ { if (self.core.state != HBStateScanning && !self.job) { - // We show whichever open source window specified in LaunchSourceBehavior preference key - if ([[[NSUserDefaults standardUserDefaults] stringForKey:@"LaunchSourceBehavior"] isEqualToString: @"Open Source"]) + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"HBShowOpenPanelAtLaunch"]) { [self browseSources:nil]; } } - } - (BOOL)openURL:(NSURL *)fileURL diff --git a/macosx/HBPreferencesController.m b/macosx/HBPreferencesController.m index 80eab0a2e..fe20160d0 100644 --- a/macosx/HBPreferencesController.m +++ b/macosx/HBPreferencesController.m @@ -58,7 +58,7 @@ NSURL *desktopURL = [NSURL fileURLWithPath:desktopDirectory isDirectory:YES]; [[NSUserDefaults standardUserDefaults] registerDefaults:@{ - @"LaunchSourceBehavior": @"Open Source", + @"HBShowOpenPanelAtLaunch": @YES, @"DefaultLanguage": @"English", @"DefaultMpegExtension": @"Auto", @"UseDvdNav": @"YES", @@ -81,6 +81,11 @@ @"HBPreviewViewExpandedStatus": @[@(4097268371718322522), @(3576901712372066251)], @"HBDrawerSize": NSStringFromSize(NSMakeSize(184, 591)) }]; + + // Overwrite the update check interval because previous versions + // could be set to a dayly check. + NSUInteger week = 60 * 60 * 24 * 7; + [[NSUserDefaults standardUserDefaults] setObject:@(week) forKey:@"SUScheduledCheckInterval"]; } /** |