mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Now storing a window's state based on its rootDirectory (instead of on windowNumber)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user