Permalink
Browse files

Fix custom bonjour name

  • Loading branch information...
1 parent 07a1e92 commit 86fbd4c4b20e8e85d30724ec182606fc5b99ac22 @kylehickinson committed Nov 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 Mac/Reflect/RFReflect.m
@@ -312,6 +312,7 @@ - (void)_setup
self.server.delegate = self;
if ([userDefaults[@"server-start-on-launch"] boolValue]) {
+ self.server.name = userDefaults[@"bonjour-name"];
[self.server start];
}
@@ -330,6 +331,7 @@ - (void)_toggleServer
} else {
[[self.menu itemAtIndex:2] setTitle:@"Server is starting…"];
[[self.menu itemAtIndex:3] setTitle:@"Stop"];
+ self.server.name = [[[NSUserDefaultsController sharedUserDefaultsController] defaults] objectForKey:@"bonjour-name"];
[self.server start];
}
}

0 comments on commit 86fbd4c

Please sign in to comment.