mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-23 11:51:03 +00:00
improve reporting of update status
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@35797 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
82bcd1c49e
commit
5d6626ee89
2 changed files with 19 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-11-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* EcControl.m: Record a change in the alerter configuration as an
|
||||
update of the overall configuration.
|
||||
|
||||
2012-10-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* EcCommand.m:
|
||||
|
|
10
EcControl.m
10
EcControl.m
|
@ -2348,10 +2348,16 @@ static NSString* cmdWord(NSArray* a, unsigned int pos)
|
|||
path = [base stringByAppendingPathComponent: @"AlertConfig.plist"];
|
||||
if ([mgr isReadableFileAtPath: path] == YES
|
||||
&& (d = [NSDictionary dictionaryWithContentsOfFile: path]) != nil)
|
||||
{
|
||||
NSDictionary *o = [[self cmdDefaults] dictionaryForKey: @"Alerter"];
|
||||
|
||||
if (nil == o || NO == [o isEqual: d])
|
||||
{
|
||||
d = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
d, @"Alerter", nil];
|
||||
[[self cmdDefaults] setConfiguration: d];
|
||||
changed = YES;
|
||||
}
|
||||
if (nil == alerter)
|
||||
{
|
||||
alerter = [EcAlerter new];
|
||||
|
@ -2359,8 +2365,12 @@ static NSString* cmdWord(NSArray* a, unsigned int pos)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (nil != alerter)
|
||||
{
|
||||
changed = YES;
|
||||
DESTROY(alerter);
|
||||
}
|
||||
}
|
||||
|
||||
path = [base stringByAppendingPathComponent: @"Operators.plist"];
|
||||
d = [NSDictionary dictionaryWithContentsOfFile: path];
|
||||
|
|
Loading…
Reference in a new issue