mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Move decoding of style to the correct place.
This commit is contained in:
parent
7b0bbdc26a
commit
0c05c151a8
2 changed files with 7 additions and 7 deletions
|
@ -176,6 +176,13 @@
|
|||
{
|
||||
if ([coder allowsKeyedCoding])
|
||||
{
|
||||
[self setPathStyle: NSPathStyleStandard];
|
||||
|
||||
if ([coder containsValueForKey: @"NSPathStyle"])
|
||||
{
|
||||
[self setPathStyle: [coder decodeIntegerForKey: @"NSPathStyle"]];
|
||||
}
|
||||
|
||||
if ([coder containsValueForKey: @"NSPathComponentCells"])
|
||||
{
|
||||
[self setPathComponentCells: [coder decodeObjectForKey: @"NSPathComponentCells"]];
|
||||
|
|
|
@ -184,13 +184,6 @@
|
|||
{
|
||||
// Defaults for some values which aren't encoded unless they are non-default.
|
||||
[self setBackgroundColor: [NSColor windowBackgroundColor]];
|
||||
[self setPathStyle: NSPathStyleStandard];
|
||||
|
||||
if ([coder containsValueForKey: @"NSPathStyle"])
|
||||
{
|
||||
[self setPathStyle: [coder decodeIntegerForKey: @"NSPathStyle"]];
|
||||
}
|
||||
|
||||
if ([coder containsValueForKey: @"NSBackgroundColor"])
|
||||
{
|
||||
[self setBackgroundColor: [coder decodeObjectForKey: @"NSBackgroundColor"]];
|
||||
|
|
Loading…
Reference in a new issue