remaining disk space warning now has an option to never ask again

This commit is contained in:
Mitchell Livingston 2007-03-24 17:41:57 +00:00
parent f946888316
commit 0061d83fd6
1 changed files with 6 additions and 3 deletions

View File

@ -667,12 +667,15 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
"Torrent file disk space alert -> message"), volumeName]];
[alert addButtonWithTitle: NSLocalizedString(@"OK", "Torrent file disk space alert -> button")];
[alert addButtonWithTitle: NSLocalizedString(@"Download Anyway", "Torrent file disk space alert -> button")];
[alert addButtonWithTitle: NSLocalizedString(@"Always Download", "Torrent file disk space alert -> button")];
BOOL ret = [alert runModal] != NSAlertFirstButtonReturn;
int result = [alert runModal];
[alert release];
return ret;
if (result == NSAlertThirdButtonReturn)
[fDefaults setBool: NO forKey: @"RemainingSpaceWarning"];
return result != NSAlertFirstButtonReturn;
}
return YES;
}