 			}
 		}
 		
-//		Swift.print(try? NSDocumentController.shared.typeForContents(of: url))
-//		Swift.print(try? NSDocumentController.shared.defaultType)
-		
 		return true
 	}
-	
+
 	@objc func discardDocumentUnless(document: Document, didSave: Bool, with context: Any?) {
 		if !didSave {
 			document.close()
 		}
 	}
-	
+
 	@IBAction open func duplicateDocument(_ sender: Any?) {
 		_ = createDocumentFromCurrentCard()
 	}
-	
+
 	func applicationShouldOpenUntitledFile(_ sender: NSApplication) -> Bool {
 		return false
 	}
-	
+
 	override func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
 		if (menuItem.tag == 2) {
 			return true

		}
		return document
	}
	
	func updateHomeCoordinate(places: [CLPlacemark]?, error: Error?) {
		if let coordinate = places?.first?.location?.coordinate {
			currentAddress!.coordinate = coordinate

		}
	}
	
	func updateCardSlots(manager: TKSmartCardSlotManager, change: NSKeyValueObservedChange<[String]>) {
		if let firstSlot = manager.slotNames.first {
			observe(slot: firstSlot)
		} else {
			clearCard()
			DispatchQueue.main.async {
				self.readerWindow?.title = "No card reader detected"
			}
		}
	}
	
	func observe(slot: String) {
		DispatchQueue.main.async {
			self.readerWindow?.title = slot
