1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

store the donate ask date right away, instead of after the user clicks yes/no

This commit is contained in:
Mitchell Livingston 2009-10-24 20:44:48 +00:00
parent 39ba9bbbba
commit ffe75b3506

View file

@ -589,6 +589,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
if (!firstLaunch && timePassed)
{
[fDefaults setObject: [NSDate date] forKey: @"DonateAskDate"];
NSAlert * alert = [[NSAlert alloc] init];
[alert setMessageText: NSLocalizedString(@"Support open-source indie software", "Donation beg -> title")];
@ -618,8 +620,6 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
[fDefaults setBool: ([[alert suppressionButton] state] != NSOnState) forKey: @"WarningDonate"];
[alert release];
[fDefaults setObject: [NSDate date] forKey: @"DonateAskDate"];
}
}
}