Skip to content

Commit

Permalink
Fixed the broken activate URL scheme action (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
newmarcel committed Nov 11, 2022
1 parent 0c3a56e commit de94a40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions KeepingYouAwake/KYAAppController/KYAAppController.m
Expand Up @@ -368,19 +368,19 @@ - (void)handleActivateActionForEvent:(KYAEvent *)event
[self terminateTimer];

// Activate indefinitely if there are no parameters
if(parameters)
if(parameters == nil || parameters.count == 0)
{
[self activateTimer];
}
else if(seconds)
else if(seconds != nil)
{
[self activateTimerWithTimeInterval:(NSTimeInterval)ceil(seconds.doubleValue)];
}
else if(minutes)
else if(minutes != nil)
{
[self activateTimerWithTimeInterval:(NSTimeInterval)KYA_MINUTES(ceil(minutes.doubleValue))];
}
else if(hours)
else if(hours != nil)
{
[self activateTimerWithTimeInterval:(NSTimeInterval)KYA_HOURS(ceil(hours.doubleValue))];
}
Expand Down

0 comments on commit de94a40

Please sign in to comment.