Skip to content

Commit

Permalink
fix for #662
Browse files Browse the repository at this point in the history
fixed bug in rule exportation
  • Loading branch information
objective-see committed Dec 19, 2024
1 parent b748482 commit d3f69ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions LuLu/App/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -426,15 +426,6 @@ -(void)makeActive:(NSWindowController*)windowController
//make foreground
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];

//center
[windowController.window center];

//show it
[windowController showWindow:self];

//make it key window
[[windowController window] makeKeyAndOrderFront:self];

//activate
if(@available(macOS 14.0, *)) {
[NSApp activate];
Expand All @@ -444,6 +435,15 @@ -(void)makeActive:(NSWindowController*)windowController
[NSApp activateIgnoringOtherApps:YES];
}

//make it key window
[windowController.window makeKeyAndOrderFront:self];

//center
[windowController.window center];

//show it
[windowController showWindow:self];

return;
}

Expand Down
4 changes: 2 additions & 2 deletions LuLu/Shared/Rule.m
Original file line number Diff line number Diff line change
Expand Up @@ -469,13 +469,13 @@ -(NSMutableString*)toJSON
//creation
if(nil != self.creation)
{
[json appendFormat:@"\"%@\" : %@,", NSStringFromSelector(@selector(creation)), [dateFormatter stringFromDate:self.creation]];
[json appendFormat:@"\"%@\" : \"%@\",", NSStringFromSelector(@selector(creation)), [dateFormatter stringFromDate:self.creation]];
}

//expiration
if(nil != self.expiration)
{
[json appendFormat:@"\"%@\" : %@,", NSStringFromSelector(@selector(creation)), [dateFormatter stringFromDate:self.expiration]];
[json appendFormat:@"\"%@\" : \"%@\",", NSStringFromSelector(@selector(creation)), [dateFormatter stringFromDate:self.expiration]];
}

[json appendFormat:@"\"%@\" : \"%@\",", NSStringFromSelector(@selector(endpointPort)), self.endpointPort];
Expand Down

0 comments on commit d3f69ac

Please sign in to comment.