mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
store the donate ask date right away, instead of after the user clicks yes/no
This commit is contained in:
parent
39ba9bbbba
commit
ffe75b3506
1 changed files with 2 additions and 2 deletions
|
@ -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"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue