From 7d7740033448cf58d560efdfa0b78562f6aa62d1 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sun, 25 Oct 2015 07:41:28 +0100 Subject: [PATCH] MacGui: remove the daily and monthly update check option. --- macosx/English.lproj/Preferences.xib | 90 +++++++++++----------------- macosx/HBController.m | 4 +- 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 @@ - + - + @@ -40,46 +40,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -142,18 +102,6 @@ - @@ -339,6 +287,40 @@ + + + + + + + + + + + + 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"]; } /** -- 2.40.0