浏览代码

Added dot in the close button when unsaved

Nick Loose 13 年之前
父节点
当前提交
fd071b3804
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Classes/IJInventoryWindowController.m

+ 4 - 0
Classes/IJInventoryWindowController.m

@@ -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.";
 }