Now storing a window's state based on its rootDirectory (instead of on windowNumber)

This commit is contained in:
Corey Johnson
2012-08-29 10:59:45 -07:00
parent 073164c584
commit 6f99b61dd3
7 changed files with 30 additions and 19 deletions

View File

@@ -21,7 +21,7 @@
if (!background) {
[self showWindow:self];
}
return self;
}
@@ -59,9 +59,8 @@
NSURL *url = [[NSBundle mainBundle] resourceURL];
NSMutableString *urlString = [NSMutableString string];
[urlString appendString:[[url URLByAppendingPathComponent:@"static/index.html"] absoluteString] ];
[urlString appendFormat:@"?windowNumber=%d", [self.window windowNumber]];
[urlString appendFormat:@"&bootstrapScript=%@", [_bootstrapScript stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
[urlString appendFormat:@"?bootstrapScript=%@", [_bootstrapScript stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
if (_pathToOpen) [urlString appendFormat:@"&pathToOpen=%@", [_pathToOpen stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
CefBrowserHost::CreateBrowser(window_info, _cefClient.get(), [urlString UTF8String], settings);
@@ -127,4 +126,4 @@
settings.fullscreen_enabled = true;
}
@end
@end