mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03:00
32d23d6303
Previously isDevMode was returning true when it was called before the resource path was initially set forcing Atom to always run in dev mode. Now we just use the new isDevFlagSpecified() method to check where the bundle resource path should be used.
45 lines
1.2 KiB
Objective-C
45 lines
1.2 KiB
Objective-C
#include "include/cef_app.h"
|
|
|
|
class AtomCefClient;
|
|
|
|
@interface AtomWindowController : NSWindowController <NSWindowDelegate> {
|
|
NSSplitView *_splitView;
|
|
NSView *_devToolsView;
|
|
NSView *_webView;
|
|
NSButton *_devButton;
|
|
NSString *_bootstrapScript;
|
|
NSString *_resourcePath;
|
|
NSString *_pathToOpen;
|
|
NSNumber *_pidToKillOnClose;
|
|
|
|
CefRefPtr<AtomCefClient> _cefClient;
|
|
CefRefPtr<AtomCefClient> _cefDevToolsClient;
|
|
CefRefPtr<CefV8Context> _atomContext;
|
|
|
|
BOOL _runningSpecs;
|
|
BOOL _exitWhenDone;
|
|
BOOL _isConfig;
|
|
}
|
|
|
|
@property (nonatomic, retain) IBOutlet NSSplitView *splitView;
|
|
@property (nonatomic, retain) IBOutlet NSView *webView;
|
|
@property (nonatomic, retain) IBOutlet NSView *devToolsView;
|
|
@property (nonatomic, retain) NSString *pathToOpen;
|
|
@property (nonatomic) BOOL isConfig;
|
|
|
|
- (id)initWithPath:(NSString *)path;
|
|
- (id)initDevWithPath:(NSString *)path;
|
|
- (id)initInBackground;
|
|
- (id)initConfig;
|
|
- (id)initSpecsThenExit:(BOOL)exitWhenDone;
|
|
- (id)initBenchmarksThenExit:(BOOL)exitWhenDone;
|
|
- (void)setPidToKillOnClose:(NSNumber *)pid;
|
|
- (BOOL)isDevMode;
|
|
- (BOOL)isDevFlagSpecified;
|
|
|
|
- (void)toggleDevTools;
|
|
- (void)showDevTools;
|
|
- (void)openPath:(NSString*)path;
|
|
|
|
@end
|