mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-06-02 10:11:07 +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
b320fe92e5
commit
f20317f8d8
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>
|
2012-10-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* EcCommand.m:
|
* 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"];
|
path = [base stringByAppendingPathComponent: @"AlertConfig.plist"];
|
||||||
if ([mgr isReadableFileAtPath: path] == YES
|
if ([mgr isReadableFileAtPath: path] == YES
|
||||||
&& (d = [NSDictionary dictionaryWithContentsOfFile: path]) != nil)
|
&& (d = [NSDictionary dictionaryWithContentsOfFile: path]) != nil)
|
||||||
|
{
|
||||||
|
NSDictionary *o = [[self cmdDefaults] dictionaryForKey: @"Alerter"];
|
||||||
|
|
||||||
|
if (nil == o || NO == [o isEqual: d])
|
||||||
{
|
{
|
||||||
d = [NSDictionary dictionaryWithObjectsAndKeys:
|
d = [NSDictionary dictionaryWithObjectsAndKeys:
|
||||||
d, @"Alerter", nil];
|
d, @"Alerter", nil];
|
||||||
[[self cmdDefaults] setConfiguration: d];
|
[[self cmdDefaults] setConfiguration: d];
|
||||||
|
changed = YES;
|
||||||
|
}
|
||||||
if (nil == alerter)
|
if (nil == alerter)
|
||||||
{
|
{
|
||||||
alerter = [EcAlerter new];
|
alerter = [EcAlerter new];
|
||||||
|
@ -2359,8 +2365,12 @@ static NSString* cmdWord(NSArray* a, unsigned int pos)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (nil != alerter)
|
||||||
|
{
|
||||||
|
changed = YES;
|
||||||
DESTROY(alerter);
|
DESTROY(alerter);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
path = [base stringByAppendingPathComponent: @"Operators.plist"];
|
path = [base stringByAppendingPathComponent: @"Operators.plist"];
|
||||||
d = [NSDictionary dictionaryWithContentsOfFile: path];
|
d = [NSDictionary dictionaryWithContentsOfFile: path];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue