Added dot in the close button when unsaved
This commit is contained in:
parent
1a4a04ecc8
commit
fd071b3804
@ -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.";
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user