Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed obsolete "Next restart only" preference.

  • Loading branch information...
commit 47d979daf4504a33f2c4db80637119061987417f 1 parent f83d05d
@kainjow authored
View
2  BOBoot.h
@@ -21,4 +21,4 @@ enum {
@class BOMedia;
BOOL BOAuthorizationRequired();
-BOOL BOBoot(BOMedia *media, BOOL nextOnly, NSError **error);
+BOOL BOBoot(BOMedia *media, NSError **error);
View
8 BOBoot.m
@@ -124,7 +124,7 @@ BOOL BOAuthorizationRequired()
return NO;
}
-BOOL BOBoot(BOMedia *media, BOOL nextOnly, NSError **error)
+BOOL BOBoot(BOMedia *media, NSError **error)
{
if (!media) {
if (error)
@@ -167,7 +167,11 @@ BOOL BOBoot(BOMedia *media, BOOL nextOnly, NSError **error)
[args addObject:media.mountPoint];
}
[args addObject:@"-nextonly"];
- [args addObject:nextOnly ? @"yes" : @"no"];
+ [args addObject:@"yes"];
+ // --nextonly used to be a user-settable preference in 1.2 and previous versions,
+ // but in 1.2.1 it was removed, but we keep it here for now in the app to stay
+ // compatible with older versions of the helper tool so the user doesn't have to
+ // reinstall it.
ret = [NSTask launchTaskAtPath:toolDest arguments:args output:&output];
switch (ret) {
View
9 BOStatusMenuController.m
@@ -14,7 +14,6 @@
#define BOPrefsLaunchAtStartup @"LaunchAtStartup"
-#define BOPrefsNextOnly @"NextOnly"
@implementation BOStatusMenuController
@@ -22,7 +21,6 @@ + (void)initialize
{
NSDictionary *defaults = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool:YES], BOPrefsLaunchAtStartup,
- [NSNumber numberWithBool:YES], BOPrefsNextOnly,
nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
}
@@ -202,11 +200,6 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notif
[menuItem setRepresentedObject:BOPrefsLaunchAtStartup];
if ([[NSUserDefaults standardUserDefaults] boolForKey:BOPrefsLaunchAtStartup])
[menuItem setState:NSOnState];
- menuItem = [menu addItemWithTitle:NSLocalizedString(@"Next restart only", "next restart only menu item") action:@selector(preferenceAction:) keyEquivalent:@""];
- [menuItem setIndentationLevel:1];
- [menuItem setRepresentedObject:BOPrefsNextOnly];
- if ([[NSUserDefaults standardUserDefaults] boolForKey:BOPrefsNextOnly])
- [menuItem setState:NSOnState];
[menu addItem:[NSMenuItem separatorItem]];
[menu addItemWithTitle:NSLocalizedString(@"BootChamp Help", "help menu item") action:@selector(showHelp:) keyEquivalent:@""];
@@ -223,7 +216,7 @@ - (void)bootWindows:(id)sender
{
[NSApp activateIgnoringOtherApps:YES];
NSError *error = nil;
- if (BOBoot([sender representedObject], [[NSUserDefaults standardUserDefaults] boolForKey:BOPrefsNextOnly], &error))
+ if (BOBoot([sender representedObject], &error))
return;
[NSApp activateIgnoringOtherApps:YES]; // app may have gone inactive from auth dialog
NSString *msg = nil, *info = nil;
View
BIN  English.lproj/Localizable.strings
Binary file not shown
View
BIN  French.lproj/Localizable.strings
Binary file not shown
View
BIN  Italian.lproj/Localizable.strings
Binary file not shown
View
BIN  Polish.lproj/Localizable.strings
Binary file not shown
View
BIN  Swedish.lproj/Localizable.strings
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.