Added dot in the close button when unsaved

This commit is contained in:
Nick Loose 2010-11-19 15:14:03 +01:00
parent 1a4a04ecc8
commit fd071b3804

View File

@ -79,6 +79,7 @@
{
dirty = NO; // Slightly hacky -- prevent the alert from being put up again.
[self loadWorldAtIndex:attemptedLoadWorldIndex];
[self setDocumentEdited: NO];
}
}
@ -177,6 +178,7 @@
[armorView setItems:armorInventory];
dirty = NO;
[self setDocumentEdited: NO];
statusTextField.stringValue = @"";
loadedWorldIndex = worldIndex;
}
@ -255,12 +257,14 @@
}
dirty = NO;
[self setDocumentEdited: NO];
statusTextField.stringValue = @"Saved.";
}
- (void)markDirty
{
dirty = YES;
[self setDocumentEdited: YES];
statusTextField.stringValue = @"World has unsaved changes.";
}