mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 01:51:09 +00:00
start the debugger only if it was never started, else, reuse it
This commit is contained in:
parent
ec805871c3
commit
dd1c1e75ba
3 changed files with 9 additions and 1 deletions
|
@ -91,6 +91,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
- (BOOL)debuggerStarted
|
||||
{
|
||||
return debuggerStarted;
|
||||
}
|
||||
|
||||
- (void)setFont:(NSFont *)aFont
|
||||
{
|
||||
if (font != aFont)
|
||||
|
|
|
@ -179,7 +179,8 @@ NSString *PCDBDebuggerStartedNotification = @"PCDBDebuggerStartedNotification";
|
|||
- (void) show
|
||||
{
|
||||
[debuggerWindow makeKeyAndOrderFront: self];
|
||||
[self startDebugger];
|
||||
if (![debuggerWrapper debuggerStarted])
|
||||
[self startDebugger];
|
||||
}
|
||||
|
||||
- (void) startDebugger
|
||||
|
|
|
@ -42,6 +42,8 @@
|
|||
- (PCDebugger *)debugger;
|
||||
- (void)setDebugger:(PCDebugger *)dbg;
|
||||
|
||||
- (BOOL)debuggerStarted;
|
||||
|
||||
- (void) runProgram: (NSString *)path
|
||||
inCurrentDirectory: (NSString *)directory
|
||||
withArguments: (NSArray *)array
|
||||
|
|
Loading…
Reference in a new issue