Move decoding of style to the correct place.

This commit is contained in:
Gregory John Casamento 2020-05-02 13:48:12 -04:00
parent 7b0bbdc26a
commit 0c05c151a8
2 changed files with 7 additions and 7 deletions

View file

@ -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"]];

View file

@ -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"]];