mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-21 02:41:11 +00:00
Don't autolaunch on config change unless autolaunch state changed: we don't want a configuration update to launch processes which were manully stopped.
This commit is contained in:
parent
85ba581bac
commit
c3fb7fdbdf
1 changed files with 2 additions and 1 deletions
|
@ -1531,6 +1531,7 @@ desiredName(Desired state)
|
|||
- (void) setConfiguration: (NSDictionary*)c
|
||||
{
|
||||
BOOL wasDisabled = [self disabled];
|
||||
BOOL wasAuto = [self autolaunch];
|
||||
|
||||
ASSIGNCOPY(conf, c);
|
||||
if ([self disabled])
|
||||
|
@ -1548,7 +1549,7 @@ desiredName(Desired state)
|
|||
}
|
||||
else if ([self autolaunch])
|
||||
{
|
||||
if (desired != Live)
|
||||
if (NO == wasAuto && desired != Live)
|
||||
{
|
||||
[self setDesired: Live reason: @"autolaunch"];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue